summaryrefslogtreecommitdiff
path: root/tests/urlpatterns_reverse/urls.py
AgeCommit message (Collapse)Author
2024-10-23Fixed #28999 -- Documented how to reverse a class-based view by instance.Clifford Gama
Co-authored-by: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com>
2024-10-23Refs #28999 -- Added tests for reversing a class-based view by instance.Clifford Gama
2022-03-29Fixed #16406 -- Added ResolveMatch.captured_kwargs and extra_kwargs.Alokik Vijay
Thanks Florian Apolloner for the review and implementation idea.
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2018-12-31Updated test URL patterns to use path() and re_path().Tim Graham
2016-12-27Fixed #27648 -- Deprecated (iLmsu) regex groups in url() patterns.Tim Graham
2016-01-06Fixed #26039 -- Unwrapped nested partials in URL reversal.Grégory Starck
Prior to Python 3.5 nested partials need to be fully "unfolded" to get the actual function.
2015-09-23Refs #22384 -- Removed the ability to reverse URLs by dotted path per ↵Tim Graham
deprecation timeline.
2015-09-23Refs #22218 -- Removed conf.urls.patterns() per deprecation timeline.Tim Graham
2015-06-24Renamed RemovedInDjangoXYWarnings for new roadmap.Tim Graham
Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more.
2015-03-23Fixed #16362 -- Allowed lookaround assertions in URL patterns.Bas Peschier
2015-03-23Fixed #13525 -- Added tests and docs for nested parameters in URL patterns.Bas Peschier
When reversing, only outer parameters are used if captured parameters are nested. Added tests to check the edge cases and documentation for the behavior with an example to avoid it.
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2014-11-29Fixed #23923 -- Promoted Django's deprecation warnings to errors in runtests.pyTim Graham
2014-08-20Prevented reverse() from generating URLs pointing to other hosts.Florian Apolloner
This is a security fix. Disclosure following shortly.
2014-08-12Fixed #23276 -- Deprecated passing views as strings to url().Tim Graham
2014-04-23Fixed #21157 -- Fixed problems with ResolverMatchKevin Christopher Henry
- Fixed bug in get_callable() that caused resolve() to put a string in ResolverMatch.func. - Made ResolverMatch.url_name match the actual url name (or None). - Updated tests that used the string value in ResolverMatch.func, and added regression tests for this bug. - Corrected test urls whose dummy view paths caused failures (behavior that was previously masked by this bug).
2014-04-23Fixed #22486 -- Restored the ability to reverse views created using ↵Preston Timmons
functools.partial. Regression in 8b93b31487d6d3b0fcbbd0498991ea0db9088054. Thanks rcoup for the report.
2014-04-21Fixed a remote code execution vulnerabilty in URL reversing.Tim Graham
Thanks Benjamin Bach for the report and initial patch. This is a security fix; disclosure to follow shortly.
2014-04-16Fixed #22378 -- Updated \d to [0-9]+ in urlpatterns of docs and tests.chriscauley
Thanks tomwys for the suggestion.
2014-04-03Fixed #22218 -- Deprecated django.conf.urls.patterns.Tim Graham
Thanks Carl Meyer for the suggestion and Alex Gaynor and Carl for reviews.
2014-03-05Fixed #7571 -- Fixed parameter matching in include()'d urlpatternAthena
Fixed URL resolving in the case where an outer regex includes an inner regex and both regexes use positional parameters instead of named groups, causing the outer regex's parameters to override the inner regex's. Modified the regex url resolver so that it will concatenates and then normalizes, instead of normalizing and then concatenating.
2013-12-14Fixed E127 pep8 warnings.Loic Bistuer
2013-07-29Removed most of absolute_import importsClaude Paroz
Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way.
2013-03-18Fixed #13260 -- Quoted arguments interpolated in URLs in reverse.Aymeric Augustin
2013-02-26Renamed some tests and removed references to modeltests/regressiontests.Florian Apolloner
2013-02-26Merged regressiontests and modeltests into the test root.Florian Apolloner