From ab5d510181d7157f3f76dc6681ef0ce360c8dcb5 Mon Sep 17 00:00:00 2001 From: Laetitia Date: Sun, 17 Sep 2023 13:46:40 +0200 Subject: [PATCH] ics file with grouped order name --- la_chariotte/order/views/grouped_order.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/la_chariotte/order/views/grouped_order.py b/la_chariotte/order/views/grouped_order.py index 1497136..e0fe825 100644 --- a/la_chariotte/order/views/grouped_order.py +++ b/la_chariotte/order/views/grouped_order.py @@ -93,7 +93,7 @@ class GroupedOrderEventView(generic.DetailView): response_kwargs.setdefault("content_type", self.content_type) response = self.response_class(content=self.get_content(), **response_kwargs) - response["Content-Disposition"] = f"attachment; filename={self.object.code}.ics" + response["Content-Disposition"] = f"attachment; filename={self.object.name}.ics" return response