Skip to content

Commit

Permalink
fix: use the correct property for data last updated
Browse files Browse the repository at this point in the history
The last updated date was not displaying, as it referenced
a custom property that does not exist in the pydantic model.
  • Loading branch information
MatMoore committed Nov 29, 2024
1 parent d8de552 commit 717de79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/details_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ <h2 class="govuk-heading-s govuk-!-margin-top-3">
{{entity.created | date:"jS F Y"}} ({{entity.created|naturaltime}})
</li>
{% endif %}
{% if entity.custom_properties.data_summary.last_updated %}
{% if entity.data_last_modified %}
<li>
<span class="govuk-!-font-weight-bold">{% translate "Last updated:" %}</span>
{{entity.custom_properties.data_summary.last_updated}}
{{entity.data_last_modified | date:"jS F Y"}}
</li>
{% endif %}
{% if entity.custom_properties.data_summary.refresh_period %}
Expand Down

0 comments on commit 717de79

Please sign in to comment.