forked from DGNum/gestioCOF
Migration for events app
This commit is contained in:
parent
90fc6aa3e7
commit
3ca8b45014
1 changed files with 30 additions and 0 deletions
30
events/migrations/0004_unique_constraints.py
Normal file
30
events/migrations/0004_unique_constraints.py
Normal file
|
@ -0,0 +1,30 @@
|
|||
# Generated by Django 2.2.12 on 2020-05-20 15:41
|
||||
|
||||
from django.conf import settings
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||
("events", "0003_options_and_extra_fields"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterUniqueTogether(
|
||||
name="extrafield", unique_together={("event", "name")},
|
||||
),
|
||||
migrations.AlterUniqueTogether(
|
||||
name="extrafieldcontent", unique_together={("field", "registration")},
|
||||
),
|
||||
migrations.AlterUniqueTogether(
|
||||
name="option", unique_together={("event", "name")},
|
||||
),
|
||||
migrations.AlterUniqueTogether(
|
||||
name="optionchoice", unique_together={("option", "choice")},
|
||||
),
|
||||
migrations.AlterUniqueTogether(
|
||||
name="registration", unique_together={("event", "user")},
|
||||
),
|
||||
]
|
Loading…
Reference in a new issue