1
0
mirror of https://github.com/django/django.git synced 2025-10-25 22:56:12 +00:00

[1.7.x] Tests for #22325

This commit is contained in:
Andrew Godwin
2014-05-08 21:48:10 -07:00
parent 1e8b1db050
commit 31eac71a76
3 changed files with 53 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
# encoding: utf8
from __future__ import unicode_literals
from django.db import migrations, models
from django.conf import settings
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(to=settings.AUTH_USER_MODEL, to_field="id")),
],
)
]