1- # Generated by Django 4.2.26 on 2025-12-02 16:47
1+ # Generated by Django 4.2.26 on 2025-12-03 23:29
22
33from django .db import migrations , models
44import django .db .models .deletion
@@ -12,8 +12,8 @@ class Migration(migrations.Migration):
1212 initial = True
1313
1414 dependencies = [
15- ('auth' , '0012_alter_user_first_name_max_length' ),
1615 ('contenttypes' , '0002_remove_content_type_name' ),
16+ ('auth' , '0012_alter_user_first_name_max_length' ),
1717 ]
1818
1919 operations = [
@@ -56,6 +56,18 @@ class Migration(migrations.Migration):
5656 },
5757 bases = (polymorphic .showfields .ShowFieldTypeAndContent , models .Model ),
5858 ),
59+ migrations .CreateModel (
60+ name = 'Duck' ,
61+ fields = [
62+ ('id' , models .AutoField (auto_created = True , primary_key = True , serialize = False , verbose_name = 'ID' )),
63+ ('name' , models .CharField (max_length = 30 )),
64+ ('polymorphic_ctype' , models .ForeignKey (editable = False , null = True , on_delete = django .db .models .deletion .CASCADE , related_name = 'polymorphic_%(app_label)s.%(class)s_set+' , to = 'contenttypes.contenttype' )),
65+ ],
66+ options = {
67+ 'abstract' : False ,
68+ 'base_manager_name' : 'objects' ,
69+ },
70+ ),
5971 migrations .CreateModel (
6072 name = 'Enhance_Base' ,
6173 fields = [
@@ -315,6 +327,17 @@ class Migration(migrations.Migration):
315327 },
316328 bases = ('tests.blogbase' ,),
317329 ),
330+ migrations .CreateModel (
331+ name = 'BlueHeadDuck' ,
332+ fields = [
333+ ('duck_ptr' , models .OneToOneField (auto_created = True , on_delete = django .db .models .deletion .CASCADE , parent_link = True , primary_key = True , serialize = False , to = 'tests.duck' )),
334+ ],
335+ options = {
336+ 'abstract' : False ,
337+ 'base_manager_name' : 'objects' ,
338+ },
339+ bases = ('tests.duck' ,),
340+ ),
318341 migrations .CreateModel (
319342 name = 'CustomPkInherit' ,
320343 fields = [
@@ -833,18 +856,6 @@ class Migration(migrations.Migration):
833856 'base_manager_name' : 'objects' ,
834857 },
835858 ),
836- migrations .CreateModel (
837- name = 'Duck' ,
838- fields = [
839- ('id' , models .AutoField (auto_created = True , primary_key = True , serialize = False , verbose_name = 'ID' )),
840- ('name' , models .CharField (max_length = 30 )),
841- ('polymorphic_ctype' , models .ForeignKey (editable = False , null = True , on_delete = django .db .models .deletion .CASCADE , related_name = 'polymorphic_%(app_label)s.%(class)s_set+' , to = 'contenttypes.contenttype' )),
842- ],
843- options = {
844- 'abstract' : False ,
845- 'base_manager_name' : 'objects' ,
846- },
847- ),
848859 migrations .CreateModel (
849860 name = 'DateModel' ,
850861 fields = [
@@ -1108,6 +1119,17 @@ class Migration(migrations.Migration):
11081119 },
11091120 bases = (polymorphic .showfields .ShowFieldTypeAndContent , models .Model ),
11101121 ),
1122+ migrations .CreateModel (
1123+ name = 'PurpleHeadDuck' ,
1124+ fields = [
1125+ ],
1126+ options = {
1127+ 'proxy' : True ,
1128+ 'indexes' : [],
1129+ 'constraints' : [],
1130+ },
1131+ bases = ('tests.blueheadduck' , models .Model ),
1132+ ),
11111133 migrations .CreateModel (
11121134 name = 'Model2D' ,
11131135 fields = [
0 commit comments