image upload working

This commit is contained in:
vabene1111
2020-06-29 15:39:58 +02:00
parent d613da7faf
commit 27963fcaa6
5 changed files with 93 additions and 32 deletions

View File

@ -149,7 +149,7 @@ class Ingredient(models.Model):
food = models.ForeignKey(Food, on_delete=models.PROTECT)
unit = models.ForeignKey(Unit, on_delete=models.PROTECT)
amount = models.DecimalField(default=0, decimal_places=16, max_digits=32)
note = models.CharField(max_length=64, null=True, blank=True)
note = models.CharField(max_length=256, null=True, blank=True)
order = models.IntegerField(default=0)
def __str__(self):