mirror of
				https://gitlab.crans.org/bde/nk20
				synced 2025-11-04 09:12:11 +01:00 
			
		
		
		
	few changes in models, delete default label
This commit is contained in:
		
							
								
								
									
										18
									
								
								apps/food/migrations/0005_auto_20240525_1559.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								apps/food/migrations/0005_auto_20240525_1559.py
									
									
									
									
									
										Normal 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'),
 | 
				
			||||||
 | 
					        ),
 | 
				
			||||||
 | 
					    ]
 | 
				
			||||||
@@ -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(
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user