diff options
| author | user@node5.net <user@node5.net> | 2025-12-07 22:53:17 +0100 |
|---|---|---|
| committer | user@node5.net <user@node5.net> | 2025-12-07 22:53:17 +0100 |
| commit | a65dc3afcf4501c36020a5547dabbb1555f664b4 (patch) | |
| tree | 77806efcf40a1c75a529c63f71692bb8f082df9f /web_interface | |
| parent | 1f298c0f87097e0f154d00d0ead1a7fa4a17a40a (diff) | |
Ingredient - amount int -> float
Diffstat (limited to 'web_interface')
| -rw-r--r-- | web_interface/drinks/migrations/0002_alter_ingredient_amount.py | 18 | ||||
| -rw-r--r-- | web_interface/drinks/models.py | 2 |
2 files changed, 19 insertions, 1 deletions
diff --git a/web_interface/drinks/migrations/0002_alter_ingredient_amount.py b/web_interface/drinks/migrations/0002_alter_ingredient_amount.py new file mode 100644 index 0000000..c0924f9 --- /dev/null +++ b/web_interface/drinks/migrations/0002_alter_ingredient_amount.py @@ -0,0 +1,18 @@ +# Generated by Django 5.2.9 on 2025-12-07 21:52 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('drinks', '0001_initial'), + ] + + operations = [ + migrations.AlterField( + model_name='ingredient', + name='amount', + field=models.FloatField(help_text='In conjunction with unit it is an absolute amount', verbose_name='Amount'), + ), + ] diff --git a/web_interface/drinks/models.py b/web_interface/drinks/models.py index 8f3fcf6..5a7d940 100644 --- a/web_interface/drinks/models.py +++ b/web_interface/drinks/models.py @@ -134,7 +134,7 @@ class Ingredient(models.Model): on_delete=models.CASCADE ) - amount = models.IntegerField( + amount = models.FloatField( verbose_name="Amount", help_text="In conjunction with unit it is an absolute amount", ) |
