36 lines
994 B
Python
36 lines
994 B
Python
# Generated by Django 2.2.17 on 2020-12-20 16:35
|
|
|
|
import django.db.models.deletion
|
|
from django.conf import settings
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
("elections", "0001_initial"),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AddField(
|
|
model_name="user",
|
|
name="election",
|
|
field=models.ForeignKey(
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="registered_voters",
|
|
to="elections.Election",
|
|
),
|
|
),
|
|
migrations.AlterField(
|
|
model_name="election",
|
|
name="created_by",
|
|
field=models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.SET_NULL,
|
|
related_name="elections_created",
|
|
to=settings.AUTH_USER_MODEL,
|
|
),
|
|
),
|
|
]
|