Skip to content

Commit

Permalink
Merge pull request #1571 from laws-africa/disclaimer
Browse files Browse the repository at this point in the history
Disclaimer in metadata
  • Loading branch information
actlikewill authored Oct 13, 2023
2 parents 81f9865 + 09e87b6 commit 28ba763
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions peachjam/views/legislation.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@ def get_notices(self):
friendly_type = self.get_friendly_type()
commenced = self.get_commencement_info()

if self.object.metadata_json.get("disclaimer"):
notices.append(
{
"type": messages.WARNING,
"html": mark_safe(self.object.metadata_json.get("disclaimer")),
}
)

if self.object.repealed and repeal:
args = {"friendly_type": friendly_type}
args.update(repeal)
Expand Down

0 comments on commit 28ba763

Please sign in to comment.