Skip to content

Commit

Permalink
fix: wrong file extension
Browse files Browse the repository at this point in the history
  • Loading branch information
saemideluxe committed May 1, 2023
1 parent d70051b commit 9250503
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion basxbread/contrib/document_templates/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def get_success_url(self):
def generate_document_download(request, pk: int, object_pk: int):
template = get_object_or_404(DocumentTemplate, id=pk)
object = template.model.get_object_for_this_type(pk=object_pk)
filename, content = template.generate_document(object, "pdf")
filename, content = template.generate_document(object, "docx")

response = HttpResponse(
content,
Expand Down

0 comments on commit 9250503

Please sign in to comment.