ingredients saving
This commit is contained in:
@ -72,10 +72,10 @@ class Recipe(models.Model):
|
||||
|
||||
|
||||
class RecipeIngredients(models.Model):
|
||||
name = models.CharField(max_length=128)
|
||||
recipe = models.ForeignKey(Recipe, on_delete=models.CASCADE)
|
||||
unit = models.CharField(max_length=128)
|
||||
amount = models.DecimalField(default=0, decimal_places=2, max_digits=16)
|
||||
ingredient = models.CharField(max_length=128)
|
||||
|
||||
|
||||
class Comment(models.Model):
|
||||
|
Reference in New Issue
Block a user