few changes in models, delete default label

This commit is contained in:
quark 2024-05-25 16:47:24 +02:00 committed by korenstin
parent 0801ad64ae
commit 3f997f94fa
2 changed files with 18 additions and 1 deletions

View File

@ -0,0 +1,18 @@
# Generated by Django 2.2.28 on 2024-05-25 13:59
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('food', '0004_auto_20240525_1352'),
]
operations = [
migrations.AlterField(
model_name='basicfood',
name='label',
field=models.ImageField(max_length=255, upload_to='label/', verbose_name='food label'),
),
]

View File

@ -194,7 +194,6 @@ class BasicFood(models.Model):
blank=False, blank=False,
null=False, null=False,
upload_to='label/', upload_to='label/',
default= 'pic/default.png',
) )
was_eaten = models.BooleanField( was_eaten = models.BooleanField(