diff --git a/basxbread/contrib/document_templates/views.py b/basxbread/contrib/document_templates/views.py index 944384c2..d86c19c9 100644 --- a/basxbread/contrib/document_templates/views.py +++ b/basxbread/contrib/document_templates/views.py @@ -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,