Skip to content

Commit

Permalink
fixed display of plan adopted date
Browse files Browse the repository at this point in the history
  • Loading branch information
ashimali committed Nov 21, 2024
1 parent ef05bce commit 65774f4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion application/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -749,10 +749,13 @@ def timeline(self):
events.extend(event.as_timeline_entry())

if self.local_plan_obj.adopted_date:
adopted_date_text = self.local_plan_obj.adopted_date
if adopted_date_text.replace("-", "") == "":
adopted_date_text = "Date unavailable"
events.append(
{
"name": "Plan adopted",
"date": self.local_plan_obj.adopted_date,
"date": adopted_date_text,
}
)
# reverse the events so the most recent ones are at the top
Expand Down

0 comments on commit 65774f4

Please sign in to comment.