Commit e8cac34e by Florian Apolloner

Fixed 1.7 migrations.

parent 819484fb
# encoding: utf8 # -*- coding: utf-8 -*-
from __future__ import unicode_literals from __future__ import unicode_literals
from django.db import models, migrations from django.db import models, migrations
...@@ -27,9 +28,9 @@ class Migration(migrations.Migration): ...@@ -27,9 +28,9 @@ class Migration(migrations.Migration):
name='TaggedItem', name='TaggedItem',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('tag', models.ForeignKey(to='taggit.Tag', to_field='id')),
('object_id', models.IntegerField(verbose_name='Object id', db_index=True)), ('object_id', models.IntegerField(verbose_name='Object id', db_index=True)),
('content_type', models.ForeignKey(to='contenttypes.ContentType', to_field='id', verbose_name='Content type')), ('content_type', models.ForeignKey(related_name='taggit_taggeditem_tagged_items', verbose_name='Content type', to='contenttypes.ContentType')),
('tag', models.ForeignKey(related_name='taggit_taggeditem_items', to='taggit.Tag')),
], ],
options={ options={
'verbose_name': 'Tagged Item', 'verbose_name': 'Tagged Item',
......
...@@ -54,7 +54,7 @@ class Migration(migrations.Migration): ...@@ -54,7 +54,7 @@ class Migration(migrations.Migration):
migrations.CreateModel( migrations.CreateModel(
name='CustomPKHousePet', name='CustomPKHousePet',
fields=[ fields=[
('custompkpet_ptr', models.OneToOneField(auto_created=True, primary_key=True, serialize=False, to='tests.CustomPKPet')), ('custompkpet_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='tests.CustomPKPet')),
('trained', models.BooleanField(default=False)), ('trained', models.BooleanField(default=False)),
], ],
options={ options={
...@@ -84,7 +84,7 @@ class Migration(migrations.Migration): ...@@ -84,7 +84,7 @@ class Migration(migrations.Migration):
migrations.CreateModel( migrations.CreateModel(
name='DirectHousePet', name='DirectHousePet',
fields=[ fields=[
('directpet_ptr', models.OneToOneField(auto_created=True, primary_key=True, serialize=False, to='tests.DirectPet')), ('directpet_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='tests.DirectPet')),
('trained', models.BooleanField(default=False)), ('trained', models.BooleanField(default=False)),
], ],
options={ options={
...@@ -155,7 +155,7 @@ class Migration(migrations.Migration): ...@@ -155,7 +155,7 @@ class Migration(migrations.Migration):
migrations.CreateModel( migrations.CreateModel(
name='OfficialHousePet', name='OfficialHousePet',
fields=[ fields=[
('officialpet_ptr', models.OneToOneField(auto_created=True, primary_key=True, serialize=False, to='tests.OfficialPet')), ('officialpet_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='tests.OfficialPet')),
('trained', models.BooleanField(default=False)), ('trained', models.BooleanField(default=False)),
], ],
options={ options={
...@@ -180,8 +180,8 @@ class Migration(migrations.Migration): ...@@ -180,8 +180,8 @@ class Migration(migrations.Migration):
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('object_id', models.IntegerField(verbose_name='Object id', db_index=True)), ('object_id', models.IntegerField(verbose_name='Object id', db_index=True)),
('content_type', models.ForeignKey(verbose_name='Content type', to='contenttypes.ContentType')), ('content_type', models.ForeignKey(related_name='tests_officialthroughmodel_tagged_items', verbose_name='Content type', to='contenttypes.ContentType')),
('tag', models.ForeignKey(to='tests.OfficialTag')), ('tag', models.ForeignKey(related_name='tagged_items', to='tests.OfficialTag')),
], ],
options={ options={
'abstract': False, 'abstract': False,
...@@ -201,6 +201,30 @@ class Migration(migrations.Migration): ...@@ -201,6 +201,30 @@ class Migration(migrations.Migration):
preserve_default=True, preserve_default=True,
), ),
migrations.CreateModel( migrations.CreateModel(
name='Parent',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
],
options={
},
bases=(models.Model,),
),
migrations.CreateModel(
name='Child',
fields=[
('parent_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='tests.Parent')),
],
options={
},
bases=('tests.parent',),
),
migrations.AddField(
model_name='parent',
name='tags',
field=taggit.managers.TaggableManager(to='taggit.Tag', through='taggit.TaggedItem', help_text='A comma-separated list of tags.', verbose_name='Tags'),
preserve_default=True,
),
migrations.CreateModel(
name='Pet', name='Pet',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
...@@ -213,7 +237,7 @@ class Migration(migrations.Migration): ...@@ -213,7 +237,7 @@ class Migration(migrations.Migration):
migrations.CreateModel( migrations.CreateModel(
name='HousePet', name='HousePet',
fields=[ fields=[
('pet_ptr', models.OneToOneField(auto_created=True, primary_key=True, serialize=False, to='tests.Pet')), ('pet_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='tests.Pet')),
('trained', models.BooleanField(default=False)), ('trained', models.BooleanField(default=False)),
], ],
options={ options={
...@@ -262,7 +286,7 @@ class Migration(migrations.Migration): ...@@ -262,7 +286,7 @@ class Migration(migrations.Migration):
migrations.AddField( migrations.AddField(
model_name='taggedcustompkfood', model_name='taggedcustompkfood',
name='tag', name='tag',
field=models.ForeignKey(to='taggit.Tag'), field=models.ForeignKey(related_name='tests_taggedcustompkfood_items', to='taggit.Tag'),
preserve_default=True, preserve_default=True,
), ),
migrations.CreateModel( migrations.CreateModel(
...@@ -290,7 +314,7 @@ class Migration(migrations.Migration): ...@@ -290,7 +314,7 @@ class Migration(migrations.Migration):
migrations.AddField( migrations.AddField(
model_name='taggedcustompkpet', model_name='taggedcustompkpet',
name='tag', name='tag',
field=models.ForeignKey(to='taggit.Tag'), field=models.ForeignKey(related_name='tests_taggedcustompkpet_items', to='taggit.Tag'),
preserve_default=True, preserve_default=True,
), ),
migrations.CreateModel( migrations.CreateModel(
...@@ -318,7 +342,7 @@ class Migration(migrations.Migration): ...@@ -318,7 +342,7 @@ class Migration(migrations.Migration):
migrations.AddField( migrations.AddField(
model_name='taggedfood', model_name='taggedfood',
name='tag', name='tag',
field=models.ForeignKey(to='taggit.Tag'), field=models.ForeignKey(related_name='tests_taggedfood_items', to='taggit.Tag'),
preserve_default=True, preserve_default=True,
), ),
migrations.CreateModel( migrations.CreateModel(
...@@ -346,7 +370,7 @@ class Migration(migrations.Migration): ...@@ -346,7 +370,7 @@ class Migration(migrations.Migration):
migrations.AddField( migrations.AddField(
model_name='taggedpet', model_name='taggedpet',
name='tag', name='tag',
field=models.ForeignKey(to='taggit.Tag'), field=models.ForeignKey(related_name='tests_taggedpet_items', to='taggit.Tag'),
preserve_default=True, preserve_default=True,
), ),
migrations.CreateModel( migrations.CreateModel(
...@@ -374,7 +398,7 @@ class Migration(migrations.Migration): ...@@ -374,7 +398,7 @@ class Migration(migrations.Migration):
migrations.AddField( migrations.AddField(
model_name='through1', model_name='through1',
name='tag', name='tag',
field=models.ForeignKey(to='taggit.Tag'), field=models.ForeignKey(related_name='tests_through1_items', to='taggit.Tag'),
preserve_default=True, preserve_default=True,
), ),
migrations.CreateModel( migrations.CreateModel(
...@@ -402,7 +426,7 @@ class Migration(migrations.Migration): ...@@ -402,7 +426,7 @@ class Migration(migrations.Migration):
migrations.AddField( migrations.AddField(
model_name='through2', model_name='through2',
name='tag', name='tag',
field=models.ForeignKey(to='taggit.Tag'), field=models.ForeignKey(related_name='tests_through2_items', to='taggit.Tag'),
preserve_default=True, preserve_default=True,
), ),
migrations.CreateModel( migrations.CreateModel(
...@@ -410,8 +434,8 @@ class Migration(migrations.Migration): ...@@ -410,8 +434,8 @@ class Migration(migrations.Migration):
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('object_id', models.IntegerField(verbose_name='Object id', db_index=True)), ('object_id', models.IntegerField(verbose_name='Object id', db_index=True)),
('content_type', models.ForeignKey(verbose_name='Content type', to='contenttypes.ContentType')), ('content_type', models.ForeignKey(related_name='tests_throughgfk_tagged_items', verbose_name='Content type', to='contenttypes.ContentType')),
('tag', models.ForeignKey(to='taggit.Tag')), ('tag', models.ForeignKey(related_name='tagged_items', to='taggit.Tag')),
], ],
options={ options={
'abstract': False, 'abstract': False,
...@@ -448,21 +472,4 @@ class Migration(migrations.Migration): ...@@ -448,21 +472,4 @@ class Migration(migrations.Migration):
field=taggit.managers.TaggableManager(to='taggit.Tag', through='tests.ArticleTaggedItem', help_text='A comma-separated list of tags.', verbose_name='Tags'), field=taggit.managers.TaggableManager(to='taggit.Tag', through='tests.ArticleTaggedItem', help_text='A comma-separated list of tags.', verbose_name='Tags'),
preserve_default=True, preserve_default=True,
), ),
migrations.CreateModel(
name='Parent',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
],
options={
},
bases=(models.Model,),
),
migrations.CreateModel(
name='Child',
fields=[
],
options={
},
bases=('tests.Parent',),
),
] ]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment