Skip to content

Commit

Permalink
Fix B026 warning
Browse files Browse the repository at this point in the history
  • Loading branch information
browniebroke committed Oct 16, 2024
1 parent fb61e33 commit c9ca309
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drf_excel/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def finalize_response(self, request, response, *args, **kwargs):
isinstance(response, Response)
and response.accepted_renderer.format == "xlsx"
):
filename = self.get_filename(request=request, *args, **kwargs) # noqa: B026
filename = self.get_filename(request, *args, **kwargs)
response["content-disposition"] = (
f"attachment; filename={escape_uri_path(filename)}"
)
Expand Down

0 comments on commit c9ca309

Please sign in to comment.