summaryrefslogtreecommitdiff
path: root/tests/regressiontests/generic_views
AgeCommit message (Collapse)Author
2013-02-26Merged regressiontests and modeltests into the test root.Florian Apolloner
2013-02-16Fixed #17260 -- Added time zone aware aggregation and lookups.Aymeric Augustin
Thanks Carl Meyer for the review. Squashed commit of the following: commit 4f290bdb60b7d8534abf4ca901bd0844612dcbda Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Wed Feb 13 21:21:30 2013 +0100 Used '0:00' instead of 'UTC' which doesn't always exist in Oracle. Thanks Ian Kelly for the suggestion. commit 01b6366f3ce67d57a58ca8f25e5be77911748638 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Wed Feb 13 13:38:43 2013 +0100 Made tzname a parameter of datetime_extract/trunc_sql. This is required to work around a bug in Oracle. commit 924a144ef8a80ba4daeeafbe9efaa826566e9d02 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Wed Feb 13 14:47:44 2013 +0100 Added support for parameters in SELECT clauses. commit b4351d2890cd1090d3ff2d203fe148937324c935 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Mon Feb 11 22:30:22 2013 +0100 Documented backwards incompatibilities in the two previous commits. commit 91ef84713c81bd455f559dacf790e586d08cacb9 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Mon Feb 11 09:42:31 2013 +0100 Used QuerySet.datetimes for the admin's date_hierarchy. commit 0d0de288a5210fa106cd4350961eb2006535cc5c Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Mon Feb 11 09:29:38 2013 +0100 Used QuerySet.datetimes in date-based generic views. commit 9c0859ff7c0b00734afe7fc15609d43d83215072 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sun Feb 10 21:43:25 2013 +0100 Implemented QuerySet.datetimes on Oracle. commit 68ab511a4ffbd2b811bf5da174d47e4dd90f28fc Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sun Feb 10 21:43:14 2013 +0100 Implemented QuerySet.datetimes on MySQL. commit 22d52681d347a8cdf568dc31ed032cbc61d049ef Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sun Feb 10 21:42:29 2013 +0100 Implemented QuerySet.datetimes on SQLite. commit f6800fd04c93722b45f9236976389e0b2fe436f5 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sun Feb 10 21:43:03 2013 +0100 Implemented QuerySet.datetimes on PostgreSQL. commit 0c829c23f4cf4d6804cadcc93032dd4c26b8c65e Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sun Feb 10 21:41:08 2013 +0100 Added datetime-handling infrastructure in the ORM layers. commit 104d82a7778cf3f0f5d03dfa53709c26df45daad Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Mon Feb 11 10:05:55 2013 +0100 Updated null_queries tests to avoid clashing with the __second lookup. commit c01bbb32358201b3ac8cb4291ef87b7612a2b8e6 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sun Feb 10 23:07:41 2013 +0100 Updated tests of .dates(). Replaced .dates() by .datetimes() for DateTimeFields. Replaced dates with datetimes in the expected output for DateFields. commit 50fb7a52462fecf0127b38e7f3df322aeb287c43 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sun Feb 10 21:40:09 2013 +0100 Updated and added tests for QuerySet.datetimes. commit a8451a5004c437190e264667b1e6fb8acc3c1eeb Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sun Feb 10 22:34:46 2013 +0100 Documented the new time lookups and updated the date lookups. commit 29413eab2bd1d5e004598900c0dadc0521bbf4d3 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sun Feb 10 16:15:49 2013 +0100 Documented QuerySet.datetimes and updated QuerySet.dates.
2013-02-13Fixed #18558 -- Added url property to HttpResponseRedirect*Hiroki Kiyohara
Thanks coolRR for the report.
2013-02-11Fixed #19044 -- Made `DeletionMixin` interpolate its `success_url`.Simon Charette
Thanks to nxvl and slurms for the initial patch, ptone for the review and timo for the documentation tweaks.
2013-01-30Added file forgotten in 23e319d7.Aymeric Augustin
2013-01-30Fixed #19076 -- Added content_type attribute to TemplateView.Aymeric Augustin
Thanks Gavin Wahl.
2012-12-04Fixed #19378 -- Ensured get_success_url returns a non-lazy URLClaude Paroz
2012-11-22Fixed #18974 - Warned against using models.permalinkTim Graham
Thanks dstufft for the draft patch.
2012-11-22Fixed #19316 -- Set View args/kwargs/request before dispatchGeorge Hickman
2012-11-21Add orphans support to MultipleObjectMixinChris Beaven
Fixes #7005
2012-11-17Merge pull request #467 from tomchristie/page-kwargJannis Leidel
Add 'page_kwarg' attribute to `MultipleObjectMixin`, removing hardcoded "page".
2012-11-04Fixed py3 compatibility for 5a00a57aa591c766f5ee1d8c59b64618d74fe191Preston Holmes
2012-11-04Fixed #19240 -- include pagination error details in ListView 404Preston Holmes
Thanks to seawolf for the patch
2012-10-25Test for `ListView.page_kwarg`Tom Christie
2012-09-22Fixed #16218 -- date_list order in generic CBVs.Aymeric Augustin
Thanks nnrcschmdt for the report and bpeschier for the initial version of the patch.
2012-08-18Merge pull request #291 from uruz/ticket18793Karen Tracey
Fixed #18793: Removed duplicate test_head_no_get in generic_views.base Thanks uruz.
2012-08-19Fixed #18793: Duplicate test test_head_no_get in generic_views.baseAlexey Boriskin
2012-08-18Fixed #3542 -- Add support for changing granularity on ArchiveView.Marc Tamlyn
Resolving the concept from a very old ticket in a more class-based-view manner.
2012-08-18Fixed #17228 -- params context variable is inconsistentMarc Tamlyn
Remove the params variable from the context and just put the variables in directly. This had not been committed previously as the original pattern was used in the functional generic views and we wanted consistency between them, but django.views.generic.simple.direct_to_template is now gone so we can do it 'right'.
2012-08-18Fixed #16744 -- Class based view should have the view object in the contextMarc Tamlyn
Updated the most recent patch from @claudep to apply again and updated the documentation location.
2012-08-12[py3] Refactored __unicode__ to __str__.Aymeric Augustin
* Renamed the __unicode__ methods * Applied the python_2_unicode_compatible decorator * Removed the StrAndUnicode mix-in that is superseded by python_2_unicode_compatible * Kept the __unicode__ methods in classes that specifically test it under Python 2
2012-08-11Decorated some tests that require tz support.Karen Tracey
This allows the test suite to run without errors on Windows.
2012-08-11[py3] Various minor syntax fixes in the test suiteClaude Paroz
2012-06-09Fixed #16418 -- Made generic views work with ModelFormsAnssi Kääriäinen
Generic views assumed any object's _meta will be model Options. This is not true for ModelForms for example. Took isinstance(obj, Model) in use instead.
2012-05-24Fixed #18353 -- Inconsistency in date-based CBVs.Aymeric Augustin
2012-05-20Fixed #18354 -- Performance issue in CBV.Aymeric Augustin
Prevented repeating a query twice when the model isn't ordered by -date_field (in Meta), allow_empty is False and pagination isn't enabled.
2012-05-17Added a test for DayArchiveView. Refs #17192.Aymeric Augustin
2012-05-17Fixed #17449 -- Added OPTIONS to generic views.Aymeric Augustin
Thanks estebistec for the report and patch.
2012-05-17Fixed #17535 -- Optimized list generic views.Aymeric Augustin
When allow_empty is False, prevented the view from loading the entire queryset in memory when pagination is enabled.
2012-05-14Fixed #10890: added prev/next_week in the contextAymeric Augustin
of per-week date-based generic views. Thanks ee_lars for the report.
2012-05-03Used catch_warnings instead of save/restore methods. Refs #17049.Claude Paroz
2012-05-01Fixed tests for date-based generic views.Aymeric Augustin
2012-04-30Fixed #18217 -- Time zone support in generic viewsAymeric Augustin
Introduced a distinct implementation depending on the type of the date field (DateField or DateTimeField), and applied appropriate conversions is the latter case, when time zone support is enabled.
2012-04-10Fixed #18087 -- Prevented date-based generic views from loading entire ↵Aymeric Augustin
tables in memory when pagination is enabled. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17893 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-04-06Fixed #16074 -- Added ContextMixin to class-based generic views to handle ↵Claude Paroz
get_context_data. Thanks emyller, Luke Plant, Preston Holmes for working on the ticket and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17875 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-17Fixed #16138 -- Made FormMixin get_initial return a copy of the 'initial' ↵Claude Paroz
class variable. Thanks hanson2010, wilfred@potatolondon.com and agriffis for their work on the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17765 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-13Fixed #17768 -- Add a comment about an expected failure in generic_views testsClaude Paroz
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17700 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-02Fixed #16842 -- Modified the RedirectView to correctly handle query strings ↵Jannis Leidel
with percent symbols. Thanks, accuser, jamey@minilop.net and Claude Paroz. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17625 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-02-18Prevented the generic views from automatically creating a HEAD method when ↵Aymeric Augustin
there is no GET. Reverts r16105, refs #17449. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17545 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-01-01Fixed #17488 -- This test passed in 2011 only because 2012-01-01 is a ↵Aymeric Augustin
Sunday. Thanks Florian Apolloner for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17321 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-13Convert the remainder of the relative imports in the tests to be absolute ↵Alex Gaynor
imports. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16981 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-13Fixed #16918 -- Ensured that custom querysets are used when provided to ↵Julien Phalip
`BaseDateDetailView.get_object()`. Thanks to mitar for the report, to koenb for the patch and to Preston Holmes for the review. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16974 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-06Fixed #16705 - Made the test client adhere to the WSGI spec -- in ↵Aymeric Augustin
particular, removed the assumption that environ['QUERY_STRING'] exists. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16933 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-11Fixed #14675 -- Completed removal of `from django.conf.urls.default import ↵Ramiro Morales
*` usage. This applies to both our own [test] code and documentation examples. Also: * Moved the functions and handlers from `django.conf.urls.defaults` up to `django.conf.urls` deprecating the former module. * Added documentation for `handler403`. * Tweaked the URLs topic document a bit. Thanks to pupeno and cdestigter for their great work contributing patches. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16818 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-08-12Fixed #15907 -- Fixed another conflict between the ModelForm exclude and the ↵Jannis Leidel
GenericInline. Thanks, leonelfreire and prestontimmons. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16603 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-08-12Fixed #16584 -- Fixed a bunch of typos in code comments. Thanks, Bernhard Essl.Jannis Leidel
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16598 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-07-29Fixed #16101 -- Added parameters to SingleObjectMixin to override the name ↵Jannis Leidel
of the URL keyword arguments used for pk and slug. Thanks, Andrew Ingram and Julien Phalip. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16569 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-07-13Fixed #16225 -- Removed unused imports. Many thanks to Aymeric Augustin for ↵Jannis Leidel
the work on the patch and Alex for reviewing. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16539 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-06-10Fixed #16196 - Redundant or incorrect code in testsLuke Plant
Thanks to intelliyole and melinath for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16354 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-04-23Fixed #15688 - Generic views should provide a HEAD implementationLuke Plant
Thanks to j4mie for the report and patch! git-svn-id: http://code.djangoproject.com/svn/django/trunk@16095 bcc190cf-cafb-0310-a4f2-bffc1f526a37