Skip to content

Commit

Permalink
bit cleaner names for files
Browse files Browse the repository at this point in the history
  • Loading branch information
ewdurbin committed Jan 4, 2024
1 parent b6c1118 commit 555e071
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sponsors/contracts.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def render_contract_to_docx_response(request, contract, **context):
)
response[
"Content-Disposition"
] = f"attachment; filename={'sponsorship-renewal' if contract.sponsorship.renewal else 'sponsorship-contract'}-{contract.sponsorship.sponsor.name.replace(' ', '-')}.docx"
] = f"attachment; filename={'sponsorship-renewal' if contract.sponsorship.renewal else 'sponsorship-contract'}-{contract.sponsorship.sponsor.name.replace(' ', '-').replace('.', '')}.docx"
return response


Expand Down

0 comments on commit 555e071

Please sign in to comment.