adding food logging, phase 5
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
# Generated by Django 6.1.1 on 2026-10-03 19:10
|
||||
|
||||
from django.conf import settings
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('food', '0001_initial'),
|
||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddConstraint(
|
||||
model_name='foodportion',
|
||||
constraint=models.UniqueConstraint(condition=models.Q(('is_default', True)), fields=('user', 'product'), name='food_one_default_portion'),
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user