-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
524 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,30 +75,10 @@ | |
|
||
API_VERSION = "0.0.1" | ||
|
||
SPECTACULAR_SETTINGS = { | ||
SPECTACULAR_SETTINGS = { # TODO: may need to be expanded. | ||
"SCHEMA_PATH_PREFIX": "/api/v1", | ||
"TITLE": "Open Producten API", | ||
"DESCRIPTION": _DESCRIPTION, | ||
# "POSTPROCESSING_HOOKS": [ | ||
# "drf_spectacular.hooks.postprocess_schema_enums", | ||
# "drf_spectacular.contrib.djangorestframework_camel_case.camelize_serializer_fields", | ||
# ], | ||
"TOS": None, | ||
# Optional: MAY contain "name", "url", "email" | ||
# "CONTACT": { | ||
# "url": "https://github.com/maykinmedia/open-producten", | ||
# "email": "[email protected]", | ||
# }, | ||
# Optional: MUST contain "name", MAY contain URL | ||
# "LICENSE": { | ||
# "name": "UNLICENSED", | ||
# }, | ||
"VERSION": API_VERSION, | ||
# Tags defined in the global scope | ||
"TAGS": [], | ||
# Optional: MUST contain 'url', may contain "description" | ||
# "EXTERNAL_DOCS": { | ||
# "description": "Functional and technical documentation", | ||
# "url": "https://open-producten.readthedocs.io/", | ||
# }, | ||
} |
29 changes: 29 additions & 0 deletions
29
src/open_producten/producttypes/migrations/0004_alter_priceoption_amount.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Generated by Django 4.2.13 on 2024-08-30 13:33 | ||
|
||
from decimal import Decimal | ||
import django.core.validators | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
( | ||
"producttypes", | ||
"0003_alter_question_category_alter_question_product_type_and_more", | ||
), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="priceoption", | ||
name="amount", | ||
field=models.DecimalField( | ||
decimal_places=2, | ||
help_text="The amount of the price option", | ||
max_digits=8, | ||
validators=[django.core.validators.MinValueValidator(Decimal("0.01"))], | ||
verbose_name="Price", | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.