add sections overview plugin

This commit is contained in:
krmax44 2022-03-14 14:02:00 +01:00
parent 9dcec2fa62
commit 9623f7105b
No known key found for this signature in database
GPG key ID: 5C499A4F4EC4EE03
4 changed files with 114 additions and 1 deletions

View file

@ -435,3 +435,12 @@ if CMSPlugin:
if self.count == 0:
return plans[self.offset :]
return plans[self.offset : self.offset + self.count]
class GovernmentPlanSectionsCMSPlugin(CMSPlugin):
"""
CMS Plugin for displaying plan sections
"""
government = models.ForeignKey(
Government, null=True, blank=True, on_delete=models.SET_NULL
)