logbook-django/logbook/flight/migrations/0004_flight_user.py

27 lines
675 B
Python
Raw Normal View History

2019-09-16 00:32:42 +00:00
# Generated by Django 2.2.5 on 2019-09-16 00:01
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
("flight", "0003_flight_leg"),
]
operations = [
migrations.AddField(
model_name="flight",
name="user",
field=models.ForeignKey(
default=1,
on_delete=django.db.models.deletion.PROTECT,
to=settings.AUTH_USER_MODEL,
),
preserve_default=False,
)
]