Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
brylie committed Oct 21, 2023
1 parent cb17ab5 commit e33d395
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 726 deletions.
1 change: 0 additions & 1 deletion blocks/blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from wagtailmedia.blocks import AbstractMediaChooserBlock

# TODO: convert to a models.TextChoices class
# e.g. in donations/models.py
IMAGE_ALIGN_CHOICES = [
("left", "Left"),
("right", "Right"),
Expand Down
20 changes: 3 additions & 17 deletions content_migration/management/commands/scaffold_initial_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
OnlineWorshipIndexPage,
)
from contact.models import MeetingIndexPage, OrganizationIndexPage, PersonIndexPage
from donations.models import DonatePage
from events.models import EventsIndexPage
from facets.models import (
AudienceIndexPage,
Expand Down Expand Up @@ -94,11 +93,6 @@ def handle(self, *args: tuple, **options: dict[str, str]) -> None:
title="Contact",
show_in_menus=True,
)
donate_page = DonatePage(
title="Donate/Pay",
intro="Intro text goes here.",
show_in_menus=True,
)
events_page = EventsIndexPage(
title="Events",
show_in_menus=True,
Expand Down Expand Up @@ -146,7 +140,6 @@ def handle(self, *args: tuple, **options: dict[str, str]) -> None:

home_page.add_child(instance=community_page)
home_page.add_child(instance=contact_form_page)
home_page.add_child(instance=donate_page)
home_page.add_child(instance=events_page)
home_page.add_child(instance=library_index_page)
home_page.add_child(instance=magazine_index_page)
Expand Down Expand Up @@ -417,8 +410,8 @@ def handle(self, *args: tuple, **options: dict[str, str]) -> None:
),
}

subscribe_donate_dropdown = {
"title": "Subscribe / Donate",
subscribe_dropdown = {
"title": "Subscribe",
# StreamBlock
"menu_items": StreamValue(
stream_block=mock_menu_block,
Expand All @@ -437,13 +430,6 @@ def handle(self, *args: tuple, **options: dict[str, str]) -> None:
"page": subscribe_newsletter_page,
},
),
(
"page",
{
"title": "Donate / Pay",
"page": donate_page,
},
),
(
"page",
{
Expand All @@ -461,7 +447,7 @@ def handle(self, *args: tuple, **options: dict[str, str]) -> None:
("drop_down", other_content_dropdown),
("drop_down", about_us_dropdown),
("drop_down", events_dropdown),
("drop_down", subscribe_donate_dropdown),
("drop_down", subscribe_dropdown),
]
navigation_menu = _get_or_create_navigation_menu_setting()

Expand Down
1 change: 0 additions & 1 deletion core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@
"contact",
"content_migration",
"documents",
"donations",
"events",
"facets",
"forms",
Expand Down
1 change: 0 additions & 1 deletion home/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ class HomePage(Page):
"community.CommunityPage",
"documents.PublicBoardDocumentIndexPage",
"documents.MeetingDocumentIndexPage",
"donations.DonatePage",
"events.EventsIndexPage",
"facets.FacetIndexPage",
"forms.ContactFormPage",
Expand Down
Loading

0 comments on commit e33d395

Please sign in to comment.