summaryrefslogtreecommitdiff
path: root/tests/urlpatterns_reverse
AgeCommit message (Collapse)Author
2015-11-03[1.9.x] Fixed #25668 -- Misc spelling errorsVille Skyttä
Backport of 3ee18400ae9b916da1a3bee9c9c630fd223a2d3c from master
2015-10-22[1.9.x] Fixed "URLconf" spelling in code comments.Tim Graham
Backport of 37ea3cb03e80de80380009a7a7939bc48d75abe9 from master
2015-09-12Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić
2015-06-24Renamed RemovedInDjangoXYWarnings for new roadmap.Tim Graham
Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more.
2015-06-20Fixed #14200 -- Added a fallback if HttpRequest.urlconf is None.Marten Kenbeek
Made BaseHandler fall back to settings.ROOT_URLCONF if HttpRequest.urlconf is set to None, rather than raising ImproperlyConfigured.
2015-06-08Fixed #21927 -- Made application and instance namespaces more distinct.Marten Kenbeek
Made URL application namespaces be set in the included URLconf and instance namespaces in the call to include(). Deprecated other ways to set application and instance namespaces.
2015-06-06Fixed #24906 -- Fixed ResolverMatch.app_name for nested namespaces.Marten Kenbeek
Set ResolverMatch.app_name to the full path of nested application namespaces.
2015-06-05Fixed #24904 -- Fixed nested namespaces in current_app.Marten Kenbeek
Fixed reverse() to correctly handled nested namespace lookups in current_app.
2015-05-20Refs #24652 -- Used SimpleTestCase where appropriate.Simon Charette
2015-04-26Fixed #24707 -- Improved error reporting for explicitly imported uncallable ↵Harry
views
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-03-18Fixed #24476 -- Added context manager/decorator for overriding script prefix.Bas Peschier
Tests were using an undocumented keyword argument for easily overriding script prefix while reversing. This is now changed into a test utility which can be used as decorator or context manager.
2015-03-12Cleaned up urlpatterns_reverse tests.Bas Peschier
2015-03-12Fixed #24013 -- Fixed escaping of reverse() prefix.Bas Peschier
Prefix was treated as a part of the url pattern, which it is not. Improved tests to conform with RFC 3986 which allows certain characters in path segments without being escaped.
2015-03-12Fixed #12943 -- Allowed unnamed arguments to be propagated in includesBas Peschier
Propagated unnamed arguments as positional arguments into included URLconfs if no named arguments are defined. Positional and keyword arguments are never combined.
2015-02-12Added missing import from last commit.Tim Graham
2015-02-12Fixed #17716 -- Prevented include('...', app_name='...') without a namespace.Tim Graham
2015-02-06Fixed E265 comment styleCollin Anderson
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-02-03Fixed #24149 -- Normalized tuple settings to lists.darkryder
2015-02-03Fixed #24252 -- Forced lazy __str__ to utf-8 on Python 2Claude Paroz
Thanks Stanislas Guerra for the report and Tomas Ehrlich for the review.
2015-01-18Changed RedirectView.permanent to False per deprecation timeline; refs #21587.Tim Graham
2015-01-17Removed the validate management command per deprecation timeline.Tim Graham
2014-12-30Applied ignore_warnings to Django testsClaude Paroz
2014-11-29Fixed #23923 -- Promoted Django's deprecation warnings to errors in runtests.pyTim Graham
2014-11-28Corrected deprecation warnings for RedirectView; refs #21587.Berker Peksag
2014-11-25Fixed #21587 -- Added a warning for changing default of RedirectView.permanent.Berker Peksag
2014-11-03Fixed #23620 -- Used more specific assertions in the Django test suite.Berker Peksag
2014-10-07Fixed #23522 -- Changed reverse() to return a Unicode string; not bytesJon Dufresne
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-07-09Fixed #22223 -- Prevented over-escaping URLs in reverse()Claude Paroz
And follow more closely the class of characters defined in the RFC 3986. Thanks Erik van Zijst for the report and the initial patch, and Tim Graham for the review.
2014-06-23Refactored common code in handlers/base.py and urlresolvers.pyAnubhav Joshi
2014-06-16Added database migration for contrib.auth.Tim Graham
refs #22170.
2014-06-03Fixed #22384 -- Deprecated reversing URLs by dotted path.Tim Graham
2014-05-28Fixed a typo that Tim Graham noticedAlex Gaynor
2014-05-28Fixed several typos in DjangoAlex Gaynor
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-06Fixed #21977 -- Deprecated SimpleTestCase.urlsAnubhav Joshi
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.
2014-02-22Fixed #21435 -- Improved error message when urlconf is empty.Baptiste Mispelon
The new error message now hints that the most likely issue is a circular import. Thanks to trac user elena for the report and to bpeschier for the original patch.
2014-02-18Replaced 'test' by 'sqlall' management command in reverse_lazy testClaude Paroz
2014-02-18Fixed #22057 -- Ensured reverse_lazy can be used in settingsClaude Paroz
And without causing a circular import. Thanks Akis Kesoglou for the report.
2014-02-15Improved fix for #18373 -- backward compatibilityGrzegorz Nosek
Commit 79558c78 cleaned up the (undocumented) interface of Resolver404 exception, which breaks compatibility with code messing with .args[0] directly. Revert the cleanup part and simply leave the fix itself.
2014-02-15Fixed #18373 - improved handling of Resolver404s from viewsGrzegorz Nosek
When django.core.urlresolvers.resolve was called from a view, failed and the exception was propagated and rendered by technical_404_response, the URL mentioned on the page was the current URL instead of the URL passed to resolve(). Fixed by using the path attribute from the Resolver404 exception instead of request.path_info. Also cleaned up the exceptions to use standard named parameters instead of stuffing a dict in args[0]