Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/urlpatterns_reverse
Commit message (Collapse)AuthorAgeFilesLines
...
* Improved fix for #18373 -- backward compatibilityGrzegorz Nosek2014-02-151-4/+4
| | | | | | 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.
* Fixed #18373 - improved handling of Resolver404s from viewsGrzegorz Nosek2014-02-151-4/+4
| | | | | | | | | | | 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]
* Imported override_settings from its new location.Aymeric Augustin2013-12-231-2/+1
|
* Removed superfluous models.py files.Aymeric Augustin2013-12-171-0/+0
| | | | | | | Added comments in the three empty models.py files that are still needed. Adjusted the test runner to add applications corresponding to test labels to INSTALLED_APPS even when they don't have a models module.
* Fixed E127 pep8 warnings.Loic Bistuer2013-12-141-8/+4
|
* Flake8 fixes -- including not runnign flake8 over a ↵Alex Gaynor2013-11-111-2/+0
| | | | backported file
* Fixed #21351 -- Replaced memoize with Python's lru_cache.Bouke Haarsma2013-11-111-4/+13
| | | | | | | | | | Replaced the custom, untested memoize with a similar decorator from Python's 3.2 stdlib. Although some minor performance degradation (see ticket), it is expected that in the long run lru_cache will outperform memoize once it is implemented in C. Thanks to EvilDMP for the report and Baptiste Mispelon for the idea of replacing memoize with lru_cache.
* Fixing E302 ErrorsJason Myers2013-11-035-1/+28
| | | | Signed-off-by: Jason Myers <jason@jasonamyers.com>
* Fixed flake8 E241Boryslav Larin2013-11-021-2/+2
|
* Fixed #21302 -- Fixed unused imports and import *.Tim Graham2013-11-023-3/+2
|
* Fix all violators of E231Alex Gaynor2013-10-261-38/+38
|
* Removed some direct settings manipulations in tests; ↵Bouke Haarsma2013-10-211-29/+35
| | | | refs #21230.
* Removed unused local variables in tests.Tim Graham2013-10-191-2/+2
|
* Whitespace cleanup.Tim Graham2013-10-105-5/+0
| | | | | | | * Removed trailing whitespace. * Added newline to EOF if missing. * Removed blank lines at EOF. * Removed some stray tabs.
* Removed a few trailing backslashes.Aymeric Augustin2013-09-221-1/+1
| | | | We have always been at war with trailing backslashes.
* Fixed #21043 -- Made resolve() handle reverse_lazy objects.Dan Johnson2013-09-061-1/+14
| | | | Thanks Keryn Knight for the report.
* Removed most of absolute_import importsClaude Paroz2013-07-2915-30/+2
| | | | | Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way.
* Stopped using django.utils.unittest in the test suite.Aymeric Augustin2013-07-011-1/+3
| | | | Refs #20680.
* Fixed #17076 -- When reversing a URL fails, inform the ↵Wilfred Hughes2013-06-141-0/+14
| | | | user which patterns were tried.
* Fixed #19866 -- Added security logger and return 400 for ↵Preston Holmes2013-05-263-1/+5
| | | | | | | | | | | | SuspiciousOperation. SuspiciousOperations have been differentiated into subclasses, and are now logged to a 'django.security.*' logger. SuspiciousOperations that reach django.core.handlers.base.BaseHandler will now return a 400 instead of a 500. Thanks to tiwoc for the report, and Carl Meyer and Donald Stufft for review.
* Use assertIsInstance in tests.Marc Tamlyn2013-05-211-3/+3
| | | | Gives much nicer errors when it fails.
* Fixed #19541 -- Fixed BaseHandler to enable reversing ↵Loic Bistuer2013-03-242-0/+76
| | | | | | URLs in response middlewares and streamed responses with respect to per-request urlconf.
* Fixed #13260 -- Quoted arguments interpolated in URLs in ↵Aymeric Augustin2013-03-182-2/+6
| | | | reverse.
* Fix #20022: Correctly handle prefixes with url-unsafe ↵Baptiste Mispelon2013-03-131-0/+5
| | | | characters in reverse().
* Fixed #20019 -- Ensured HttpRequest.resolver_match ↵Aymeric Augustin2013-03-101-1/+5
| | | | | | always exists. Obviously it isn't set until the URL is resolved.
* Renamed some tests and removed references to ↵Florian Apolloner2013-02-269-42/+42
| | | | modeltests/regressiontests.
* Merged regressiontests and modeltests into the test root.Florian Apolloner2013-02-2624-0/+952