Skip to content

Fixes #2151 -- Forwarded args and kwargs in URLMixin.url #2163

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 22, 2025

Conversation

matthiask
Copy link
Member

Description

Some static file storages have additional arguments to .url(), for example to return a non-hashed URL in debug mode, see https://github.com/django/django/blob/a8536e33da6365fb7bba901a06a67d163d0d4c8a/django/contrib/staticfiles/storage.py#L201

I think this change doesn't strictly require tests, but I'm happy to postpone this if we don't want to do this without tests.

Fixes #2151

Checklist:

  • I have added the relevant tests for this change.
  • I have added an item to the Pending section of docs/changes.rst.

@matthiask matthiask changed the title Fixes 2151 -- Forwarded args and kwargs in URLMixin.url Fixes #2151 -- Forwarded args and kwargs in URLMixin.url Jul 22, 2025
Copy link
Member

@tim-schilling tim-schilling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feels like a safe change to me.

@matthiask
Copy link
Member Author

Great, thanks!

@matthiask matthiask merged commit b40dd8a into django-commons:main Jul 22, 2025
25 checks passed
@matthiask matthiask deleted the 2151 branch July 22, 2025 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

URLMixin is missing force argument
2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy