Claude Paroz
|
6118d6d1c9
|
More import removals
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-29 11:58:36 +02:00 |
Ramiro Morales
|
8eadbc5a03
|
Removed 'mimetype' arguments from a few places, as per deprecation TL.
This includes HttpResponse and co. __init__() methods,
django.shortcuts.render_to_response() and the index(), sitemap() sitemap
app views.
|
2013-06-28 21:48:16 -03:00 |
Aymeric Augustin
|
89cb771be7
|
Fixed #19692 -- Completed deprecation of mimetype in favor of content_type.
Thanks Tim for the report and initial patch.
|
2013-01-31 13:54:40 +01:00 |
Claude Paroz
|
6ed6a18a03
|
Fixed #19432 -- Provided better error message for get_object_or_404
Thanks Kit Sunde for the report and Brian Holdefehr for the initial
patch.
|
2012-12-12 22:05:00 +01:00 |
Rigel Di Scala
|
2bca9a4eda
|
Fix spelling error in the docstring
|
2012-11-23 16:20:18 +00:00 |
Carl Meyer
|
a78dd109e6
|
Fixed #15552 -- LOGIN_URL and LOGIN_REDIRECT_URL can take URLpattern names.
Thanks UloPe and Eric Florenzano for the patch, and Malcolm Tredinnick for
review.
|
2012-09-08 16:58:35 -06:00 |
Claude Paroz
|
deed192dda
|
Removed usage of mimetype kwarg of HttpResponse
Refs #16519.
|
2012-06-30 21:19:07 +02:00 |
Jannis Leidel
|
a3894945b6
|
Fixed #15010 -- Added current_app parameter to close gap between TemplateResponse and render method. Thanks, acdha.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15153 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2011-01-05 22:41:43 +00:00 |
Russell Keith-Magee
|
0fef92f6f0
|
Fixed #14936 -- Tweaked the new render shortcut to reflect non-legacy 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-22 04:54:10 +00:00 |
Russell Keith-Magee
|
b3d2091681
|
Fixed #12816 -- Added a render() shortcut.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15008 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2010-12-21 17:18:41 +00:00 |
Adrian Holovaty
|
2ef52d0ce2
|
Fixed #11960 -- Improved error message for redirects. Thanks, mattmcc
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12185 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2010-01-10 18:44:39 +00:00 |
Jacob Kaplan-Moss
|
d7e8127524
|
Fixed #10194: added `django.shortcuts.redirect`, a do-what-I-mean redirect 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
|
2009-03-21 13:09:13 +00:00 |
Malcolm Tredinnick
|
805c364fcf
|
Fixed #3511 -- Changed QuerySet.get() to return a MultipleObjectsReturned 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-12-02 18:21:07 +00:00 |
Adrian Holovaty
|
042d87b98c
|
Fixed #5483 -- Removed django.shortcuts.load_and_render, which was replaced a long time ago
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6257 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-09-15 04:52:48 +00:00 |
Adrian Holovaty
|
4f70820dc1
|
Fixed breakage introduced in the recent render_to_response() change
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6227 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-09-14 21:58:17 +00:00 |
Adrian Holovaty
|
aff47aa5ed
|
Fixed #1504 -- render_to_response() now takes a mimetype parameter
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6217 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-09-14 21:30:13 +00:00 |
Adrian Holovaty
|
da6b3865ae
|
Changed docstring additions from [5744] to use active verbs ('returns' instead of 'return')
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5756 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-07-25 03:12:31 +00:00 |
Gary Wilson Jr
|
7a16a1d81a
|
Corrected typo in [5746].
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5747 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-07-22 03:45:03 +00:00 |
Gary Wilson Jr
|
cae92ae615
|
Fixed #4373 -- Modified the get_object_or_404/get_list_or_404 shortcuts to also accept `QuerySet`s. Thanks SuperJared.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5746 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-07-22 03:41:11 +00:00 |
Gary Wilson Jr
|
63cc023eea
|
Shortcut functions do not accept `QuerySet` objects, yet :)
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5745 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-07-22 03:12:50 +00:00 |
Gary Wilson Jr
|
d95e91b380
|
Added docstrings to shortcuts module and functions.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5744 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-07-22 03:09:24 +00:00 |
Malcolm Tredinnick
|
880e3cfaa6
|
Backed out the changes in [5482] for a bit whilst some more investigation into
side-effects is done. Refs #4565.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5511 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-06-22 07:15:04 +00:00 |
Malcolm Tredinnick
|
bccb8897e6
|
Fixed #4565 -- Changed template rendering to use iterators, rather than
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-06-17 07:11:37 +00:00 |
Adrian Holovaty
|
6cc0eda1cb
|
Fixed #3767 -- Added reason to Http404 exception raised in get_object_or_404 and get_list_or_404
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4756 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-03-20 16:48:41 +00:00 |
Russell Keith-Magee
|
e1c6e987d0
|
Fixed #2756 -- Modified the get_object_or_404/get_list_or_404 shortcuts to 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
|
2007-01-03 14:16:58 +00:00 |
Jacob Kaplan-Moss
|
eb74800b31
|
Added *args to get_list_or_404, too (refs #2048).
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3015 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-05-31 12:36:01 +00:00 |
Jacob Kaplan-Moss
|
4a57ef8588
|
Fixed #2048 - get_object_or_404 now allows *args as well. Thanks, Joeboy
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3014 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-05-31 12:34:05 +00:00 |
Adrian Holovaty
|
f69cf70ed8
|
MERGED MAGIC-REMOVAL BRANCH TO TRUNK. This change is highly 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
|
2006-05-02 01:31:56 +00:00 |