diff --git a/bread/contrib/reports/urls.py b/bread/contrib/reports/urls.py index 1c220eae..b81b2318 100644 --- a/bread/contrib/reports/urls.py +++ b/bread/contrib/reports/urls.py @@ -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", )