Skip to content
Snippets Groups Projects

Add election page under crossroads and custom

Merged jindra12 requested to merge features/add-election-pages-under-other-types-than-parent into test
1 file
+ 6
2
Compare changes
  • Side-by-side
  • Inline
+ 6
2
@@ -1072,7 +1072,11 @@ class DistrictElectionRootPage(RoutablePageMixin, Page):
@@ -1072,7 +1072,11 @@ class DistrictElectionRootPage(RoutablePageMixin, Page):
### RELATIONS
### RELATIONS
parent_page_types = ["district.DistrictHomePage"]
parent_page_types = [
 
"district.DistrictHomePage",
 
"district.DistrictCustomPage",
 
"district.DistrictCrossroadPage",
 
]
subpage_types = [
subpage_types = [
"district.DistrictElectionCampaignPage",
"district.DistrictElectionCampaignPage",
"district.DistrictGeoFeatureCollectionPage",
"district.DistrictGeoFeatureCollectionPage",
@@ -1384,7 +1388,7 @@ class DistrictCustomPage(
@@ -1384,7 +1388,7 @@ class DistrictCustomPage(
### RELATIONS
### RELATIONS
parent_page_types = ["district.DistrictHomePage", "district.DistrictCrossroadPage"]
parent_page_types = ["district.DistrictHomePage", "district.DistrictCrossroadPage"]
subpage_types = []
subpage_types = ["district.DistrictElectionRootPage"]
### OTHERS
### OTHERS
Loading