add sections overview plugin
This commit is contained in:
parent
9dcec2fa62
commit
9623f7105b
4 changed files with 114 additions and 1 deletions
|
|
@ -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
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue