Skip to content

Commit

Permalink
[#1661] Removed footer_* address fields from SiteConfiguration model
Browse files Browse the repository at this point in the history
  • Loading branch information
Bart van der Schoor committed Aug 21, 2023
1 parent 3682d82 commit 9e661bf
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 44 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Generated by Django 3.2.20 on 2023-08-21 13:23

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
("configurations", "0048_auto_20230816_1255"),
]

operations = [
migrations.RemoveField(
model_name="siteconfiguration",
name="footer_mailing_intro",
),
migrations.RemoveField(
model_name="siteconfiguration",
name="footer_mailing_title",
),
migrations.RemoveField(
model_name="siteconfiguration",
name="footer_visiting_intro",
),
migrations.RemoveField(
model_name="siteconfiguration",
name="footer_visiting_map",
),
migrations.RemoveField(
model_name="siteconfiguration",
name="footer_visiting_phonenumber",
),
migrations.RemoveField(
model_name="siteconfiguration",
name="footer_visiting_title",
),
]
44 changes: 0 additions & 44 deletions src/open_inwoner/configurations/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,50 +204,6 @@ class SiteConfiguration(SingletonModel):
help_text=_("The message when a user edits a goal."),
)

# TODO remove these fields
footer_visiting_title = models.CharField(
max_length=255,
default="",
blank=True,
verbose_name=_("Footer visiting title"),
help_text=_("Visiting title on the footer section."),
)
footer_visiting_intro = models.TextField(
verbose_name=_("Visiting details"),
default="",
blank=True,
help_text=_("Visiting intro text on the footer section."),
)
footer_visiting_phonenumber = models.CharField(
max_length=15,
default="",
blank=True,
validators=[DutchPhoneNumberValidator()],
verbose_name=_("Footer visiting phonenumber"),
help_text=_("Visiting phonenumber on the footer section."),
)
footer_visiting_map = models.CharField(
max_length=255,
verbose_name=_("Footer visiting map"),
default="",
blank=True,
help_text=_("Visiting address in google maps on the footer section."),
)
footer_mailing_title = models.CharField(
max_length=255,
default="",
blank=True,
verbose_name=_("Footer mailing title"),
help_text=_("Mailing title on the footer section."),
)
footer_mailing_intro = models.TextField(
verbose_name=_("Mailing details"),
default="",
blank=True,
help_text=_("Mailing intro text on the footer section."),
)
# TODO ^^^^ remove above fields ^^^^

footer_logo = FilerImageField(
verbose_name=_("Footer logo"),
null=True,
Expand Down

0 comments on commit 9e661bf

Please sign in to comment.