File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
wagtail_advanced_form_builder/models Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 77
88class EmailFormField (AbstractAdvancedFormField ):
99
10+ # Add explicit `id` primary key using Django's defaults for versions
11+ # prior to 3.2 to avoid migrations when upgrading to that version.
12+ id = models .AutoField (
13+ primary_key = True ,
14+ auto_created = True ,
15+ serialize = False ,
16+ verbose_name = 'ID' ,
17+ )
1018 page = ParentalKey (
1119 'wagtail_advanced_form_builder.EmailFormPage' ,
1220 on_delete = models .CASCADE ,
Original file line number Diff line number Diff line change 77
88class FormField (AbstractAdvancedFormField ):
99
10+ # Add explicit `id` primary key using Django's defaults for versions
11+ # prior to 3.2 to avoid migrations when upgrading to that version.
12+ id = models .AutoField (
13+ primary_key = True ,
14+ auto_created = True ,
15+ serialize = False ,
16+ verbose_name = 'ID' ,
17+ )
1018 page = ParentalKey (
1119 'wagtail_advanced_form_builder.FormPage' ,
1220 on_delete = models .CASCADE ,
You can’t perform that action at this time.
0 commit comments