Add serving count to recipe

This commit is contained in:
tourn
2020-08-30 15:59:25 +02:00
parent 82497c734a
commit 652b4bf2af
6 changed files with 34 additions and 5 deletions

View File

@ -175,6 +175,7 @@ class Step(models.Model):
class Recipe(models.Model):
name = models.CharField(max_length=128)
servings = models.IntegerField(default=1)
image = models.ImageField(upload_to='recipes/', blank=True, null=True)
storage = models.ForeignKey(Storage, on_delete=models.PROTECT, blank=True, null=True)
file_uid = models.CharField(max_length=256, default="", blank=True)