diff --git a/base/migrations/0007_remove_formpage_page_ptr_delete_formfield_and_more.py b/base/migrations/0007_remove_formpage_page_ptr_delete_formfield_and_more.py new file mode 100644 index 0000000..637011d --- /dev/null +++ b/base/migrations/0007_remove_formpage_page_ptr_delete_formfield_and_more.py @@ -0,0 +1,23 @@ +# Generated by Django 5.0.2 on 2024-10-06 15:19 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('base', '0006_navigationsettings_bluesky_url_and_more'), + ] + + operations = [ + migrations.RemoveField( + model_name='formpage', + name='page_ptr', + ), + migrations.DeleteModel( + name='FormField', + ), + migrations.DeleteModel( + name='FormPage', + ), + ] diff --git a/base/models.py b/base/models.py index a590d8c..748e1f0 100644 --- a/base/models.py +++ b/base/models.py @@ -76,25 +76,25 @@ class FooterText( class Meta(TranslatableMixin.Meta): verbose_name_plural = "Footer Text" - -class FormField(AbstractFormField): - page = ParentalKey('FormPage', on_delete=models.CASCADE, related_name='form_fields') - - -class FormPage(AbstractEmailForm): - intro = RichTextField(blank=True) - thank_you_text = RichTextField(blank=True) - - content_panels = AbstractEmailForm.content_panels + [ - FormSubmissionsPanel(), - FieldPanel('intro'), - InlinePanel('form_fields', label="Form fields"), - FieldPanel('thank_you_text'), - MultiFieldPanel([ - FieldRowPanel([ - FieldPanel('from_address'), - FieldPanel('to_address'), - ]), - FieldPanel('subject'), - ], "Email"), - ] +# +# class FormField(AbstractFormField): +# page = ParentalKey('FormPage', on_delete=models.CASCADE, related_name='form_fields') +# +# +# class FormPage(AbstractEmailForm): +# intro = RichTextField(blank=True) +# thank_you_text = RichTextField(blank=True) +# +# content_panels = AbstractEmailForm.content_panels + [ +# FormSubmissionsPanel(), +# FieldPanel('intro'), +# InlinePanel('form_fields', label="Form fields"), +# FieldPanel('thank_you_text'), +# MultiFieldPanel([ +# FieldRowPanel([ +# FieldPanel('from_address'), +# FieldPanel('to_address'), +# ]), +# FieldPanel('subject'), +# ], "Email"), +# ]