summaryrefslogtreecommitdiff
path: root/tests/regressiontests/generic_views
AgeCommit message (Collapse)Author
2011-04-22Fixed #15698 -- Fixed inconsistant handling of context_object_name in ↵Jannis Leidel
paginated MultipleObjectMixin views. Thanks, Dave Hall. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16079 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-04-02Fixed #15739 -- Added support to RedirectView for HEAD, OPTIONS, POST, PUT ↵Russell Keith-Magee
and DELETE requests git-svn-id: http://code.djangoproject.com/svn/django/trunk@15992 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-03-15Fixed #15575 -- Corrected handling of pagination in generic views to match ↵Russell Keith-Magee
documentation and historical behavior. Thanks to Ivan Virabyan for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15820 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-03-03Fixed #15544 -- Corrected a test failure in the generic views tests that ↵Russell Keith-Magee
depended on primary key allocation. Thanks to Łukasz Rekucki for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15742 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-03-03Updated test assertions that have been deprecated by the move to unittest2. ↵Russell Keith-Magee
In summary, this means: assert_ -> assertTrue assertEquals -> assertEqual failUnless -> assertTrue For full details, see http://www.voidspace.org.uk/python/articles/unittest2.shtml#deprecations git-svn-id: http://code.djangoproject.com/svn/django/trunk@15728 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-15Fixed #15247 -- Ensured that if a SingleObject view defines get_object but ↵Russell Keith-Magee
not get_queryset, the ModelFormMixin doesn't fail. Thanks to Sergey N. Belinsky for the report and test case. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15540 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-14Fixed #15298 -- Raise a better error when a TemplateResponseMixin doesn't ↵Russell Keith-Magee
have a template_name defined. Thanks to rasca for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15532 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-14Fixed #15272 -- Altered generic views to use the guaranteed untranslated ↵Russell Keith-Magee
object_name, rather than the possibly translated verbose_name(_plural) for default context objects. Thanks to szczav for the report and patch. This is BACKWARDS INCOMPATIBLE for anyone relying on the default context object names for class-based Detail and List views. To migrate, either update your templates to use the new default names, or add a context_object_name argument to your generic views. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15531 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-06Fixed #14711 -- Corrected the calculation for the previous month in generic ↵Russell Keith-Magee
date views. Thanks to msundstr for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15438 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-24Fixed #15012 -- Added post-rendering callbacks to TemplateResponse so that ↵Russell Keith-Magee
decorators (in particular, the cache decorator) can defer processing until after rendering has occurred. Thanks to Joshua Ginsberg for the draft patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15295 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-15Fixed #15048 -- Modified a test case to avoid a known bug in Python 2.4's ↵Russell Keith-Magee
time library. Thanks to Łukasz Rekucki for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15216 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-08Fixed inconsistency in ListView's pagination (short datasets should also ↵Andrew Godwin
trigger a pagination, but with a single possible page) git-svn-id: http://code.djangoproject.com/svn/django/trunk@15155 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-04Corrected a test failure under Postgres caused by PK allocation. Thanks to ↵Russell Keith-Magee
Alex for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15147 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-03Fixed #14878 -- Clarified the way verbose_name_plural is used in generic ↵Russell Keith-Magee
list views as a context variable. Thanks to diegueus9 for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15133 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-09Fixes #14873 -- A paginated ListView with a List instead of queryset ↵Chris Beaven
produces an error. Additional minor change in functionality: the page is now not considered paginated if the objects do not span multiple pages according to the paginator. This will only affect views with a custom paginator method which uses orphans. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14864 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-07Fixed #12815 -- Added TemplateResponse, a lazy-evaluated Response class. ↵Russell Keith-Magee
Thanks to Simon Willison for the original idea, and to Mikhail Korobov and Ivan Sagalaev for their assistance, including the draft patch from Mikhail. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14850 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-05Fixed #14773 -- Modified MultipleObjectMixin to allow for custom paginators. ↵Russell Keith-Magee
Thanks to piquadrat for the report and initial patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14828 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-04Fixed #14797 -- Corrected the handling of get_form_class() when a custom ↵Russell Keith-Magee
queryset has been defined, but a model hasn't. Thanks to Gabriel Grant for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14809 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-04Fixed #14803 -- Corrected an inconsistency in redirection handling between ↵Russell Keith-Magee
old-style generic views and class-based views. Thanks to gg for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14808 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-23Fixed #14752 -- Corrected date parsing in WeekArchiveView when using %W as a ↵Russell Keith-Magee
week format. Thanks to msundstr for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14684 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-28Fixed #14504 -- Corrected the way object_list is used in ListView to avoid ↵Russell Keith-Magee
overwriting context. Includes improved usage of unittest2 assertions. Thanks to Łukasz Rekucki for the final patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14372 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-18Corrected some Postgres test failures introduced by r14254.Russell Keith-Magee
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14256 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-18Fixed #6735 -- Added class-based views.Russell Keith-Magee
This patch is the result of the work of many people, over many years. To try and thank individuals would inevitably lead to many people being left out or forgotten -- so rather than try to give a list that will inevitably be incomplete, I'd like to thank *everybody* who contributed in any way, big or small, with coding, testing, feedback and/or documentation over the multi-year process of getting this into trunk. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14254 bcc190cf-cafb-0310-a4f2-bffc1f526a37