added amount to ingredients
This commit is contained in:
parent
4afe965f2d
commit
3ea37b217d
@ -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)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user