Skip to content

Commit

Permalink
TP2000-1443 Fix MultipleObjectsReturned error on Footnote measures tab (
Browse files Browse the repository at this point in the history
#1261)

* Use current() to get the latest version of the footnote
  • Loading branch information
dalecannon committed Jul 11, 2024
1 parent 9280826 commit 096ff84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion footnotes/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ class FootnoteDetailMeasures(SortingMixin, WithPaginationListMixin, ListView):

@property
def footnote(self):
return models.Footnote.objects.get(
return models.Footnote.objects.current().get(
footnote_type__footnote_type_id=self.kwargs[
"footnote_type__footnote_type_id"
],
Expand Down

0 comments on commit 096ff84

Please sign in to comment.