summaryrefslogtreecommitdiff
path: root/django/shortcuts.py
AgeCommit message (Collapse)Author
2025-09-26Fixed #36142 -- Made Http404 messages in *_or_404() shortcuts translatable.Romain DA COSTA VIEIRA
2024-11-14Fixed #35784 -- Added support for preserving the HTTP request method in ↵Lorenzo Peña
HttpResponseRedirectBase. Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
2024-01-26Applied Black's 2024 stable style.Mariusz Felisiak
https://github.com/psf/black/releases/tag/24.1.0
2023-07-24Fixed #34714 -- Added aget_object_or_404()/aget_list_or_404() shortcuts.Olivier Tabone
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2021-10-18Refs #32956 -- Changed docs to treat the acronym HTTP phonetically.David Smith
2020-10-28Made small readability improvements.Martin Thoma
2019-01-17Refs #25978 -- Removed shortcuts.render_to_response() per deprecation timeline.Tim Graham
2018-05-16Added missing word to render_to_response deprecation warning.Richard Morrison
2018-02-19Fixed #29135 -- Prevented get_object/list_or_404() from hiding ↵dizballanze
AttributeError raised by QuerySet filtering.
2017-11-06Fixed #28776 -- Fixed a/an/and typos in docs and comments.Дилян Палаузов
2017-09-28Added missing punctuation in django/shortcuts.py docstring.Tim Graham
2017-04-27Refs #27795 -- Replaced many force_text() with str()Claude Paroz
Thanks Tim Graham for the review.
2017-03-04Refs #27656 -- Updated remaining docstring verbs according to PEP 257.Anton Samarchyan
2017-02-11Fixed #25978 -- Deprecated shorcuts.render_to_response().Tim Graham
2017-02-01Refs #23919 -- Replaced kwargs.pop() with keyword-only arguments.Vytis Banaitis
2017-01-18Refs #23919 -- Removed six.<various>_types usageClaude Paroz
Thanks Tim Graham and Simon Charette for the reviews.
2016-03-29Fixed #10532 -- Relaxed hard-type checking in get_object/list_or_404 shortcutsClaude Paroz
Thanks Anssi Kääriäinen for the patch suggestion, and Tim Graham for the review.
2015-12-31Fixed #26013 -- Moved django.core.urlresolvers to django.urls.Marten Kenbeek
Thanks to Tim Graham for the review.
2015-09-23Removed dictionary and context_instance parameters for render functions.Tim Graham
Per deprecation timeline.
2015-09-23Removed dirs parameter in template engine methods and related funtions.Tim Graham
Per deprecation timeline.
2015-09-23Removed current_app argument to render() and TemplateResponse().Tim Graham
Per deprecation timeline.
2015-08-31Fixed #25331 -- Removed trailing blank lines in docstrings.Maxime Lorant
2015-06-24Renamed RemovedInDjangoXYWarnings for new roadmap.Tim Graham
Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more.
2015-03-13Fed tuples to startswith when appropriateClaude Paroz
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-02-03Fixed #24168 -- Allowed selecting a template engine in a few APIs.Aymeric Augustin
Specifically in rendering shortcuts, template responses, and class-based views that return template responses. Also added a test for render_to_response(status=...) which was missing from fdbfc980. Thanks Tim and Carl for the review.
2015-01-10Fixed #24097 -- Prevented AttributeError in redirect_to_loginClaude Paroz
Thanks Peter Schmidt for the report and the initial patch. Thanks to ​Oktay Sancak for writing the original failing test and Alvin Savoy for supporting contributing back to the community.
2015-01-07Restored support for multiple template names in render(_to_response).Aymeric Augustin
This possibility was documented but not tested. It had been broken during the multiple template engines refactor.
2014-12-28Deprecated current_app in TemplateResponse and render(_to_response).Aymeric Augustin
2014-12-28Deprecated some arguments of django.shortcuts.render(_to_response).Aymeric Augustin
dictionary and context_instance and superseded by context. Refactored tests that relied context_instance with more modern idioms.
2014-12-28Simplified implementation of django.shortcuts.render(_to_response).Aymeric Augustin
*args, **kwargs brought more confusion than concision.
2014-12-28Supported multiple template engines in render_to_string.Aymeric Augustin
Adjusted its API through a deprecation path according to the DEP.
2014-02-15Moved relative URL handling added in refs #21177 to a better place.Tim Graham
Thanks apollo13: "reverse() shouldn't know about absolute/relative paths."
2013-11-19Changed shortcuts from being a package to just being a moduleAlex Gaynor