28 lines
784 B
Python
28 lines
784 B
Python
|
# Generated by Django 3.0.8 on 2020-07-22 16:03
|
||
|
|
||
|
from django.conf import settings
|
||
|
from django.db import migrations, models
|
||
|
import django.db.models.deletion
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
initial = True
|
||
|
|
||
|
dependencies = [
|
||
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||
|
('events', '0001_initial'),
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.AddField(
|
||
|
model_name='eventregistration',
|
||
|
name='user',
|
||
|
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL),
|
||
|
),
|
||
|
migrations.AddConstraint(
|
||
|
model_name='eventregistration',
|
||
|
constraint=models.UniqueConstraint(fields=('event', 'user'), name='register_only_once'),
|
||
|
),
|
||
|
]
|