-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
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
Fixed #28766 -- Added ResolverMatch.route #10657
Fixed #28766 -- Added ResolverMatch.route #10657
Conversation
2a81dde
to
95b1b68
Compare
docs/ref/urlresolvers.txt
Outdated
@@ -130,6 +130,12 @@ If the URL does not resolve, the function raises a | |||
|
|||
The name of the URL pattern that matches the URL. | |||
|
|||
.. attribute:: ResolverMatch.route | |||
|
|||
.. versionadded:: 2.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this should be 2.2?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, and please add a release note in docs/releases/2.2.txt
.
docs/ref/urlresolvers.txt
Outdated
|
||
.. versionadded:: 2.1 | ||
|
||
The route of the URL pattern that matches the URL. |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
Please check test coverage carefully. I don't see any failures if the change in |
3de38c4
to
3aa89e5
Compare
adae3eb
to
b758f4d
Compare
Hello @timgraham, sorry to nag but is there anything missing or something I must/could do to help this get merged ? |
4438f2d
to
e5a0332
Compare
4b0a248
to
c8d81c2
Compare
c8d81c2
to
14fd32f
Compare
Co-Authored-By: Xavier Fernandez <xavier.fernandez@polyconseil.fr>
14fd32f
to
79c196c
Compare
Thanks @timgraham for the guidance :) |
* Fix support for Django `1.10`/`1.11`, by allowing `settings.MIDDLEWARE`. * Add Tox environments for every Django major version, including 4.0 beta. * Fix tests for new Tox environments to pass. Relevant context: * In Django 1.x, usage of `settings.MIDDLEWARE_CLASSES` is detected by running `settings.MIDDLEWARE is None`: https://github.com/django/django/blob/58f02c498b659a906e9c30d946bd89bedc4717e5/django/core/handlers/base.py#L48 * HTTP route in `ResolverMatch` object is only available since Django 2.2: django/django#10657 * Django class `HttpResponseBase` works as a mapping object, so avoiding accessing its internal headers object simplifies support accross Django versions.
* Fix support for Django `1.10`/`1.11`, by allowing `settings.MIDDLEWARE`. * Add Tox environments for every Django major version, including 4.0 beta. * Fix tests for new Tox environments to pass. Relevant context: * In Django 1.x, usage of `settings.MIDDLEWARE_CLASSES` is detected by running `settings.MIDDLEWARE is None`: https://github.com/django/django/blob/58f02c498b659a906e9c30d946bd89bedc4717e5/django/core/handlers/base.py#L48 * HTTP route in `ResolverMatch` object is only available since Django 2.2: django/django#10657 * Django class `HttpResponseBase` works as a mapping object, so avoiding accessing its internal headers object simplifies support accross Django versions.
https://code.djangoproject.com/ticket/28766