diff --git a/drf_excel/mixins.py b/drf_excel/mixins.py index f857166..709a044 100644 --- a/drf_excel/mixins.py +++ b/drf_excel/mixins.py @@ -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)}" )