From 9b9fa0bcfe961ec2efba1177a64858df5550ec44 Mon Sep 17 00:00:00 2001 From: quark Date: Sat, 25 May 2024 16:47:24 +0200 Subject: [PATCH] few changes in models, delete default label --- .../food/migrations/0005_auto_20240525_1559.py | 18 ++++++++++++++++++ apps/food/models.py | 1 - 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 apps/food/migrations/0005_auto_20240525_1559.py diff --git a/apps/food/migrations/0005_auto_20240525_1559.py b/apps/food/migrations/0005_auto_20240525_1559.py new file mode 100644 index 00000000..88d794b2 --- /dev/null +++ b/apps/food/migrations/0005_auto_20240525_1559.py @@ -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'), + ), + ] diff --git a/apps/food/models.py b/apps/food/models.py index b0a222f4..7bc47da1 100644 --- a/apps/food/models.py +++ b/apps/food/models.py @@ -194,7 +194,6 @@ class BasicFood(models.Model): blank=False, null=False, upload_to='label/', - default= 'pic/default.png', ) was_eaten = models.BooleanField(