Skip to content

Commit

Permalink
fix: exception when viewing reports
Browse files Browse the repository at this point in the history
  • Loading branch information
saemideluxe committed Aug 9, 2021
1 parent ee70622 commit 4c3f726
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bread/contrib/reports/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def get_layout(self):
helper_text=f"{self.object.queryset.count()} {self.object.model.model_class()._meta.verbose_name_plural}",
primary_button=_layout.button.Button.fromaction(
Link(
urls.reverse_model(self.object, "excel", {"pk": object.pk}),
urls.reverse_model(self.object, "excel", {"pk": self.object.pk}),
label=_("Excel"),
iconname="download",
)
Expand Down

0 comments on commit 4c3f726

Please sign in to comment.