summaryrefslogtreecommitdiff
path: root/tests/view_tests/views.py
AgeCommit message (Collapse)Author
2025-07-23Refs #36500 -- Rewrapped long docstrings and block comments via a script.django-bot
Rewrapped long docstrings and block comments to 79 characters + newline using script from https://github.com/medmunds/autofix-w505.
2023-06-23Refs #31949 -- Made @sensitive_variables/sensitive_post_parameters ↵Jon Janzen
decorators to work with async functions. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2023-03-30Reverted "Refs #31949 -- Enabled @sensitive_variables to work with async ↵Mariusz Felisiak
functions." This reverts commits 23cbed21876bf02f4600c0dac3a5277db5b2afbb and 203a15cadbf8d03b51df1b28d89b2e7ab4264973.
2023-03-22Refs #31949 -- Enabled @sensitive_variables to work with async functions.Jon Janzen
2022-02-07Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2022-01-28Fixed #33461 -- Escaped template errors in the technical 500 debug page.Keryn Knight
2022-01-13Fixed #33396 -- Added view name to technical 500 debug page.Hrushikesh Vaidya
2020-10-15Fixed #32105 -- Added template paths as ExceptionReporter class attributes.Aarni Koskela
This allows replacement of the debugging templates without having to copy-paste the `get_traceback_html` and `get_traceback_text` functions into a subclass. Thanks to Nick Pope for review.
2020-09-09Fixed #31962 -- Made SessionMiddleware raise SessionInterrupted when session ↵Hasan Ramezani
destroyed while request is processing.
2020-01-16Fixed #30752 -- Allowed using ExceptionReporter subclasses in error reports.Pavel Lysak
2017-04-02Removed unused code in i18n view_testsClaude Paroz
Unused since 2b20e4148f4f54431834e6a43af6c39dc75e6362.
2017-02-03Refs #23919 -- Removed a Python 2 code path in force_text().Tim Graham
Reverted the obsolete fix and tests for refs #12302.
2017-01-19Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2016-11-10Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.za
2016-04-15Fixed #19567 -- Added JavaScriptCatalog and JSONCatalog class-based viewsClaude Paroz
Thanks Cristiano Coelho and Tim Graham for the reviews.
2016-04-09Fixed #26466 -- Added HTTP_REFERER decoding to i18n set_language() view.Miikka Salminen
2016-04-08Fixed E128 flake8 warnings in tests/.Tim Graham
2016-01-11Fixed #25385 -- Allowed importing views.generic.View from views.View.Varun Sharma
2015-12-31Fixed #26013 -- Moved django.core.urlresolvers to django.urls.Marten Kenbeek
Thanks to Tim Graham for the review.
2015-12-23Refs #25969 -- Replaced usage of render_to_response() with render() in tests.Tim Graham
2015-05-11Fixed #24733 -- Passed the triggering exception to 40x error handlersClaude Paroz
Thanks Tim Graham for the review.
2015-04-24Fixed #24526 -- Combined django.request/security loggers with the root logger.Tim Graham
Thanks Carl Meyer for review.
2015-03-24Removed getLogger alias in django.utils.log.Tim Graham
2015-03-20Fixed #22106 -- Allowed using more than one instance of javascript_catalog ↵Moritz Sichert
per project.
2015-03-18Fixed #23960 -- Removed http.fix_location_headerClaude Paroz
Thanks Carl Meyer for the report and Tim Graham for the review.
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2014-11-22Moved tests for render shortcuts to their own app.Aymeric Augustin
2014-06-30Fixed #22756 -- Added view name to technical 404 template if Http404 is raised.Julia Matsieva
Thanks Keryn Knight for the suggestion.
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]
2014-02-14Fixed #17942 -- Added a JsonResponse class to more easily create JSON ↵Lukasz Balcerzak
encoded responses. Thanks leahculver for the suggestion and Erik Romijn, Simon Charette, and Marc Tamlyn for the reviews.
2013-11-02Fixing E302 ErrorsJason Myers
Signed-off-by: Jason Myers <jason@jasonamyers.com>
2013-10-19Removed unused local variables in tests.Tim Graham
2013-10-18Fixed #21287 -- Fixed E123 pep8 warningsAlasdair Nicol
2013-09-18Fixed #21098 -- Applied sensitive_post_parameters to MultiValueDictTim Graham
Thanks simonpercivall for the report and bmispelon for the review.
2013-09-18Fixed #4278 -- Added a dirs parameter to a few functions to override ↵Berker Peksag
TEMPLATE_DIRS. * django.template.loader.get_template() * django.template.loader.select_template() * django.shortcuts.render() * django.shortcuts.render_to_response() Thanks amcnabb for the suggestion.
2013-09-06adds fix and test for when a template is not specified at all to render(). ↵Ian Wilson
fixes #21058. by jambonrose and ianawilson
2013-08-12Unlocalize line numbers and ids in debug 500 view.Ramiro Morales
While using USE_L10N, line numbers and IDs were printed as comma (or locale equivalent) separated values. Thanks Kronuz for the report and intial patch. Fixes #20861.
2013-08-04Fixed #20822 -- Set content type of default error pages to 'text/html'.Aymeric Augustin
Thanks Jimmy Song for the patch.
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-05-21Fixed #6412 -- More details if a template file cannot be loadedMathijs de Bruin
Report more details about template files in loader postmortem.
2013-02-26Renamed some tests and removed references to modeltests/regressiontests.Florian Apolloner