2014-05-09 04:48:10 +00:00
|
|
|
from django.conf import settings
|
2015-01-28 12:35:27 +00:00
|
|
|
from django.db import migrations, models
|
2014-05-09 04:48:10 +00:00
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
|
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
|
|
|
"Author",
|
|
|
|
[
|
|
|
|
("id", models.AutoField(primary_key=True)),
|
|
|
|
("name", models.CharField(max_length=255)),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
|
|
|
"Tribble",
|
|
|
|
[
|
|
|
|
("id", models.AutoField(primary_key=True)),
|
2015-07-22 14:43:21 +00:00
|
|
|
(
|
|
|
|
"author",
|
|
|
|
models.ForeignKey(
|
|
|
|
settings.AUTH_USER_MODEL, models.CASCADE, to_field="id"
|
|
|
|
),
|
2022-02-03 19:24:19 +00:00
|
|
|
),
|
2014-05-09 04:48:10 +00:00
|
|
|
],
|
|
|
|
),
|
|
|
|
]
|