mirror of
				https://gitlab.crans.org/bde/nk20
				synced 2025-11-04 09:12:11 +01:00 
			
		
		
		
	Edit forms, views, template to improve/modify view. Edit urls to remove some path. Few changes in models.
This commit is contained in:
		
							
								
								
									
										28
									
								
								apps/food/migrations/0004_auto_20240813_2358.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								apps/food/migrations/0004_auto_20240813_2358.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,28 @@
 | 
			
		||||
# Generated by Django 2.2.28 on 2024-08-13 21:58
 | 
			
		||||
 | 
			
		||||
from django.db import migrations, models
 | 
			
		||||
import django.db.models.deletion
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class Migration(migrations.Migration):
 | 
			
		||||
 | 
			
		||||
    dependencies = [
 | 
			
		||||
        ('food', '0003_create_14_allergens_mandatory'),
 | 
			
		||||
    ]
 | 
			
		||||
 | 
			
		||||
    operations = [
 | 
			
		||||
        migrations.RemoveField(
 | 
			
		||||
            model_name='transformedfood',
 | 
			
		||||
            name='is_active',
 | 
			
		||||
        ),
 | 
			
		||||
        migrations.AddField(
 | 
			
		||||
            model_name='food',
 | 
			
		||||
            name='is_active',
 | 
			
		||||
            field=models.BooleanField(default=True, verbose_name='is active'),
 | 
			
		||||
        ),
 | 
			
		||||
        migrations.AlterField(
 | 
			
		||||
            model_name='qrcode',
 | 
			
		||||
            name='food_container',
 | 
			
		||||
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='QR_code', to='food.Food', verbose_name='food container'),
 | 
			
		||||
        ),
 | 
			
		||||
    ]
 | 
			
		||||
		Reference in New Issue
	
	Block a user