From a65dc3afcf4501c36020a5547dabbb1555f664b4 Mon Sep 17 00:00:00 2001 From: "user@node5.net" Date: Sun, 7 Dec 2025 22:53:17 +0100 Subject: Ingredient - amount int -> float --- .../drinks/migrations/0002_alter_ingredient_amount.py | 18 ++++++++++++++++++ web_interface/drinks/models.py | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 web_interface/drinks/migrations/0002_alter_ingredient_amount.py (limited to 'web_interface') 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", ) -- cgit v1.3.1