diff --git a/district/models.py b/district/models.py index 82bdcba1dce026130c39badbfb392595b91941bd..e1ba7656de1635cc73c9e1bf600a8e5a5aca6c6c 100644 --- a/district/models.py +++ b/district/models.py @@ -971,6 +971,9 @@ class DistrictElectionCampaignPage(DistrictElectionBasePage): ### PANELS content_panels = Page.content_panels + [ + HelpPanel( + "<strong>TIP: </strong>Body programu a stránku povolební strategie přidávejte jako podstránky této stránky" + ), FieldPanel("candidates"), MultiFieldPanel( [ @@ -997,6 +1000,10 @@ class DistrictElectionCampaignPage(DistrictElectionBasePage): ### RELATIONS parent_page_types = ["district.DistrictElectionRootPage"] + subpage_types = [ + "district.DistrictElectionProgramPage", + "district.DistrictPostElectionStrategyPage", + ] class Meta: verbose_name = "Kandidatura" @@ -1152,7 +1159,7 @@ class DistrictProgramPage( ### OTHERS class Meta: - verbose_name = "Program" + verbose_name = "Plnění programu" def save(self, **kwargs): from redmine_utils.functions import fill_data_from_redmine_for_page