summaryrefslogtreecommitdiff
path: root/django/shortcuts
AgeCommit message (Collapse)Author
2013-11-19Changed shortcuts from being a package to just being a moduleAlex Gaynor
2013-11-02More attacking E302 violatorsAlex Gaynor
2013-09-22Fixed a mistake in my previous commit.Aymeric Augustin
2013-09-22Removed a few trailing backslashes.Aymeric Augustin
We have always been at war with trailing backslashes.
2013-06-29More import removalsClaude Paroz
Following the series of commits removing deprecated features in Django 1.7, here are some more unneeded imports removed and other minor cleanups.
2013-06-28Removed 'mimetype' arguments from a few places, as per deprecation TL.Ramiro Morales
This includes HttpResponse and co. __init__() methods, django.shortcuts.render_to_response() and the index(), sitemap() sitemap app views.
2013-01-31Fixed #19692 -- Completed deprecation of mimetype in favor of content_type.Aymeric Augustin
Thanks Tim for the report and initial patch.
2012-12-12Fixed #19432 -- Provided better error message for get_object_or_404Claude Paroz
Thanks Kit Sunde for the report and Brian Holdefehr for the initial patch.
2012-11-23Fix spelling error in the docstringRigel Di Scala
2012-09-08Fixed #15552 -- LOGIN_URL and LOGIN_REDIRECT_URL can take URLpattern names.Carl Meyer
Thanks UloPe and Eric Florenzano for the patch, and Malcolm Tredinnick for review.
2012-06-30Removed usage of mimetype kwarg of HttpResponseClaude Paroz
Refs #16519.
2011-01-05Fixed #15010 -- Added current_app parameter to close gap between ↵Jannis Leidel
TemplateResponse and render method. Thanks, acdha. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15153 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-22Fixed #14936 -- Tweaked the new render shortcut to reflect non-legacy ↵Russell Keith-Magee
arguments. Thanks to adamv for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15020 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-21Fixed #12816 -- Added a render() shortcut.Russell Keith-Magee
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15008 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-10Fixed #11960 -- Improved error message for redirects. Thanks, mattmccAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12185 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-21Fixed #10194: added `django.shortcuts.redirect`, a do-what-I-mean redirect ↵Jacob Kaplan-Moss
shortcut. See the docs at topics/http/shortcuts for details. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10108 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-02Fixed #3511 -- Changed QuerySet.get() to return a MultipleObjectsReturned ↵Malcolm Tredinnick
exception, rather than an assertion error. Thanks, Gary Wilson and cheeming. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6838 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-15Fixed #5483 -- Removed django.shortcuts.load_and_render, which was replaced ↵Adrian Holovaty
a long time ago git-svn-id: http://code.djangoproject.com/svn/django/trunk@6257 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-14Fixed breakage introduced in the recent render_to_response() changeAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6227 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-14Fixed #1504 -- render_to_response() now takes a mimetype parameterAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6217 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-25Changed docstring additions from [5744] to use active verbs ('returns' ↵Adrian Holovaty
instead of 'return') git-svn-id: http://code.djangoproject.com/svn/django/trunk@5756 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-22Corrected typo in [5746].Gary Wilson Jr
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5747 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-22Fixed #4373 -- Modified the get_object_or_404/get_list_or_404 shortcuts to ↵Gary Wilson Jr
also accept `QuerySet`s. Thanks SuperJared. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5746 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-22Shortcut functions do not accept `QuerySet` objects, yet :)Gary Wilson Jr
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5745 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-22Added docstrings to shortcuts module and functions.Gary Wilson Jr
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5744 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-22Backed out the changes in [5482] for a bit whilst some more investigation intoMalcolm Tredinnick
side-effects is done. Refs #4565. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5511 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-17Fixed #4565 -- Changed template rendering to use iterators, rather thanMalcolm Tredinnick
creating large strings, as much as possible. This is all backwards compatible. Thanks, Brian Harring. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5482 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-20Fixed #3767 -- Added reason to Http404 exception raised in get_object_or_404 ↵Adrian Holovaty
and get_list_or_404 git-svn-id: http://code.djangoproject.com/svn/django/trunk@4756 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-03Fixed #2756 -- Modified the get_object_or_404/get_list_or_404 shortcuts to ↵Russell Keith-Magee
accept model managers as well as model classes. Thanks, Gary Wilson. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4275 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-05-31Added *args to get_list_or_404, too (refs #2048).Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3015 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-05-31Fixed #2048 - get_object_or_404 now allows *args as well. Thanks, JoeboyJacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3014 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-05-02MERGED MAGIC-REMOVAL BRANCH TO TRUNK. This change is highly ↵Adrian Holovaty
backwards-incompatible. Please read http://code.djangoproject.com/wiki/RemovingTheMagic for upgrade instructions. git-svn-id: http://code.djangoproject.com/svn/django/trunk@2809 bcc190cf-cafb-0310-a4f2-bffc1f526a37