summaryrefslogtreecommitdiff
path: root/django/views/generic/date_based.py
AgeCommit message (Collapse)Author
2012-04-25Fixed #18033 -- Removed function-based generic views, as per official ↵Claude Paroz
deprecation timeline. Rest in peace! Thanks Anssi Kääriäinen for the review. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17937 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-20Upgraded the date based generic views to avoid warnings when time zone ↵Aymeric Augustin
support is enabled. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17127 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-04-02Advanced deprecations for function-based generic viewsRussell Keith-Magee
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15989 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
2010-01-10Fixed: 3274: Added date_list context variable to the archive_month generic ↵Karen Tracey
view, consistent with archive_index and archive_year. Thanks Sean Brant. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12195 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-10Changed a whole bunch of places to raise exception instances instead of ↵Adrian Holovaty
old-style raising exception classes plus a comma. Good for the future Python 3 conversion git-svn-id: http://code.djangoproject.com/svn/django/trunk@12180 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-13Fixed #10458 -- Corrected the `next_month` and `previous_month` context ↵Russell Keith-Magee
variables provided with the generic month_archive view. The value returned now matches the docstring and the generic views documentation. Thanks to fperetti for the report and initial patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10556 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-09Fixed #7944: date-based generic views no longer get confused with a numeric ↵Jacob Kaplan-Moss
month format. Thanks to Justin Lilly and Alex Gaynor. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10457 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-23Fixed #7602 -- Corrected lookup keyword arguments in archive_month and ↵Brian Rosner
archive_week to properly range when date_field is from DateField. Thanks nullie for the original patch and Colin Grady for the test coverage. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8476 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-02Fixed #685 -- archive_index() and object_list() generic views allow emptyMalcolm Tredinnick
result sets by default now. Thanks, Gary Wilson and Matt Croydon. This is a backwards incompatible change. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6833 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-14Fixed #3895 -- Added ability to customize the context variable in the ↵Russell Keith-Magee
archive_index generic view. Thanks to marco.giusti@gmail.com and toke-django@toke.de. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6157 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-07Changed imports to adhere to PEP 8.Gary Wilson Jr
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6058 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-07Fixed #3134 -- Made the `archive_year` generic view consistent with the ↵Gary Wilson Jr
other date-based generic views by not performing an `order_by()` on the passed queryset. This change is backwards-incompatible if you were relying on `archive_year` to do the ordering for you. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6057 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-08-12Fixed #5085 -- In generic views, set the default name for the slug field to ↵Malcolm Tredinnick
'slug'. Thanks, Trevor Caira. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5877 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
2006-08-21Fixed #2471 -- Got date-based generic views working with SQLite DateFields. ↵Adrian Holovaty
Thanks for the patch, Steven Armstrong git-svn-id: http://code.djangoproject.com/svn/django/trunk@3633 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-27Fixed #2433 -- Added allow_future option to date-based generic viewsAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3457 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-03Eliminated lots of mutable default arguments (since they are bugsLuke Plant
waiting to happen and are memory leaks too). git-svn-id: http://code.djangoproject.com/svn/django/trunk@3070 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-01Fixed #697 -- Added make_object_list parameter to archive_year generic view. ↵Adrian Holovaty
Thanks, jhf@hex.no git-svn-id: http://code.djangoproject.com/svn/django/trunk@3039 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-05-31Fixed #2000 -- Added 'mimetype' parameter to generic views. Thanks, Ian HolsmanAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3022 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
2006-03-01Fixed #1399 -- Added template_object_name hook to generic views. Thanks, ↵Adrian Holovaty
ChaosKCW git-svn-id: http://code.djangoproject.com/svn/django/trunk@2453 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-18Fixed #1229 -- Added allow_empty argument to archive_year and archive_month ↵Adrian Holovaty
date-based generic views git-svn-id: http://code.djangoproject.com/svn/django/trunk@2337 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-17Fixed #1302 -- Added next_month and previous_month to template context in ↵Adrian Holovaty
archive_month date-based generic view. Thanks, ubernostrum git-svn-id: http://code.djangoproject.com/svn/django/trunk@2323 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-24Fixed #925 -- Added TEMPLATE_CONTEXT_PROCESSORS, which lets you specify ↵Adrian Holovaty
processesors for DjangoContext. Thanks, Luke Plant git-svn-id: http://code.djangoproject.com/svn/django/trunk@1773 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-16Fixed #1041 -- Generic views no longer use deprecated template_loader. ↵Adrian Holovaty
Thanks for the patch, Ian git-svn-id: http://code.djangoproject.com/svn/django/trunk@1684 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-09Fixed #992 -- Fixed bug in archive_month generic view leaving out the last ↵Adrian Holovaty
day of the month. Thanks, ubernostrum git-svn-id: http://code.djangoproject.com/svn/django/trunk@1571 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-30Added allow_empty hook to archive_index date-based generic view.Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1510 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-29Fixed #541 - generic views now may take a {{{template_loader}}} argument so ↵Jacob Kaplan-Moss
they can use a different template loader than Django's own. Thanks, Joao. git-svn-id: http://code.djangoproject.com/svn/django/trunk@734 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-26Removed 'use_numeric_months' parameter in generic date views (from [308]) in ↵Adrian Holovaty
favor of something more powerful -- you can now provide month_format and day_format, which are format strings that specify how you expect the month and day to be formatted in the URL. git-svn-id: http://code.djangoproject.com/svn/django/trunk@312 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-25Fixed #196: date-based generic views now have a "use_numeric_months" option ↵Jacob Kaplan-Moss
if you'd like to use numeric months in the urls. Also fixed #183 while I was at it. git-svn-id: http://code.djangoproject.com/svn/django/trunk@308 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-25Fixed #195: generic views now allow callables in extra_context dicts -- ↵Jacob Kaplan-Moss
thanks, Moof! git-svn-id: http://code.djangoproject.com/svn/django/trunk@307 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-24A bunch of generics: documentation of generic views; cleaned up existing ↵Jacob Kaplan-Moss
generic views, and added create/update generic views. git-svn-id: http://code.djangoproject.com/svn/django/trunk@304 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-22Fixed #146 -- Changed order_by and ordering parameters to be less verbose. ↵Adrian Holovaty
The old syntax is still supported but will not be supported by first release. git-svn-id: http://code.djangoproject.com/svn/django/trunk@292 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-21Fixed #137 -- thanks nesh@studioquattro.co.yuJacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@268 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-15Renamed CMSRequest to DjangoRequest, and CMSContext to DjangoContext. Old ↵Adrian Holovaty
code will still work. git-svn-id: http://code.djangoproject.com/svn/django/trunk@57 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-13Imported Django from private SVN repository (created from r. 8825)Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3 bcc190cf-cafb-0310-a4f2-bffc1f526a37