-
Notifications
You must be signed in to change notification settings - Fork 0
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
6 changed files
with
177 additions
and
2 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
src/open_producten/producten/migrations/0003_product_frequentie_product_prijs.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,44 @@ | ||
# Generated by Django 4.2.17 on 2025-01-24 16:16 | ||
|
||
from decimal import Decimal | ||
import django.core.validators | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("producten", "0002_alter_product_eind_datum_alter_product_start_datum"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="product", | ||
name="frequentie", | ||
field=models.CharField( | ||
choices=[ | ||
("eenmalig", "Eenmalig"), | ||
("maandelijks", "Maandelijks"), | ||
("jaarlijks", "Jaarlijks"), | ||
], | ||
default="eenmalig", | ||
help_text="Prijs frequentie.", | ||
max_length=30, | ||
verbose_name="Prijs frequentie", | ||
), | ||
preserve_default=False, | ||
), | ||
migrations.AddField( | ||
model_name="product", | ||
name="prijs", | ||
field=models.DecimalField( | ||
decimal_places=2, | ||
default="1", | ||
help_text="Het bedrag van de prijs optie.", | ||
max_digits=8, | ||
validators=[django.core.validators.MinValueValidator(Decimal("0.01"))], | ||
verbose_name="bedrag", | ||
), | ||
preserve_default=False, | ||
), | ||
] |
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