mirror of
https://framagit.org/la-chariotte/la-chariotte.git
synced 2025-05-01 11:22:24 +02:00
ics file with grouped order name
This commit is contained in:
parent
efb414f1f9
commit
ab5d510181
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ class GroupedOrderEventView(generic.DetailView):
|
||||||
response_kwargs.setdefault("content_type", self.content_type)
|
response_kwargs.setdefault("content_type", self.content_type)
|
||||||
|
|
||||||
response = self.response_class(content=self.get_content(), **response_kwargs)
|
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
|
return response
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue