From 3ea37b217d753cdbfa12e6e71ebd3725b22e297e Mon Sep 17 00:00:00 2001 From: Kaibu Date: Thu, 14 Nov 2019 00:09:13 +0100 Subject: [PATCH] added amount to ingredients --- cookbook/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cookbook/models.py b/cookbook/models.py index 6678f1605..d979184f7 100644 --- a/cookbook/models.py +++ b/cookbook/models.py @@ -73,6 +73,7 @@ class Recipe(models.Model): class RecipeIngredients(models.Model): recipe = models.ForeignKey(Recipe, on_delete=models.CASCADE) unit = models.CharField(max_length=128) + amount = models.DecimalField(default=0) ingredient = models.ForeignKey(Ingredients, models.PROTECT)