1
0
mirror of https://github.com/django/django.git synced 2025-01-24 17:19:19 +00:00

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
813 B
Python
Raw Normal View History

2014-05-08 21:48:10 -07:00
from django.conf import settings
from django.db import migrations, models
2014-05-08 21:48:10 -07: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)),
(
"author",
models.ForeignKey(
settings.AUTH_USER_MODEL, models.CASCADE, to_field="id"
),
),
2014-05-08 21:48:10 -07:00
],
),
]