From 2dd52d1a33f19e476a098f3638eda6b7529af608 Mon Sep 17 00:00:00 2001 From: Maximilian Friedersdorff Date: Fri, 28 Jun 2024 21:03:12 +0100 Subject: [PATCH] Add pre hopped lme as type of malt --- .../migrations/0004_alter_malt_kind.py | 26 +++++++++++++++++++ reinheit/apps/ingredients/models.py | 1 + 2 files changed, 27 insertions(+) create mode 100644 reinheit/apps/ingredients/migrations/0004_alter_malt_kind.py diff --git a/reinheit/apps/ingredients/migrations/0004_alter_malt_kind.py b/reinheit/apps/ingredients/migrations/0004_alter_malt_kind.py new file mode 100644 index 0000000..52715dc --- /dev/null +++ b/reinheit/apps/ingredients/migrations/0004_alter_malt_kind.py @@ -0,0 +1,26 @@ +# Generated by Django 5.0.6 on 2024-06-28 20:03 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("ingredients", "0003_rename_hops_hop"), + ] + + operations = [ + migrations.AlterField( + model_name="malt", + name="kind", + field=models.CharField( + choices=[ + ("DME", "Dry Malt Extract"), + ("LME", "Liquid Malt Extract"), + ("MALT", "Malted Grain"), + ("KIT", "Pre Hopped Liquid Malt Extract"), + ], + max_length=4, + ), + ), + ] diff --git a/reinheit/apps/ingredients/models.py b/reinheit/apps/ingredients/models.py index 213ff17..ffc2e3a 100644 --- a/reinheit/apps/ingredients/models.py +++ b/reinheit/apps/ingredients/models.py @@ -39,6 +39,7 @@ class Malt(Ingredient): DME = "DME", "Dry Malt Extract" LME = "LME", "Liquid Malt Extract" MALT = "MALT", "Malted Grain" + KIT = "KIT", "Pre Hopped Liquid Malt Extract" UNIT = "kg"