summaryrefslogtreecommitdiff
path: root/django/views/generic/list.py
AgeCommit message (Collapse)Author
2024-10-15Fixed #35682 -- Updated docstrings for base view classes which require a ↵Yash
response mixin.
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2020-02-04Simplified imports from django.db and django.contrib.gis.db.Nick Pope
2019-06-28Fixed #30400 -- Improved typography of user facing strings.Jon Dufresne
Thanks Claude Paroz for assistance with translations.
2017-12-04Fixed #28860 -- Removed unnecessary len() calls.Дилян Палаузов
2017-11-07Fixed #28719 -- Added a helpful exception if ↵Bjorn Kristinsson
MultipleObjectTemplateResponseMixin doesn't generate any template names.
2017-03-03Refs #27656 -- Updated django.views docstring verbs according to PEP 257.Anton Samarchyan
2017-02-07Converted usage of ugettext* functions to their gettext* aliasesClaude Paroz
Thanks Tim Graham for the review.
2017-02-01Refs #23919 -- Replaced kwargs.pop() with keyword-only arguments.Vytis Banaitis
2017-01-25Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand
2017-01-18Refs #23919 -- Removed six.<various>_types usageClaude Paroz
Thanks Tim Graham and Simon Charette for the reviews.
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2016-04-08Fixed E128 flake8 warnings in django/.Tim Graham
2016-04-04Fixed W503 flake8 warnings.Tim Graham
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2014-08-15Fixed #18355 -- Added ordering options to list based generic views.Peter Harley
Added MultipleObjectMixin.ordering and get_ordering(). Refs #21450.
2013-11-28Fixed E125 pep8 warningsChristopher Medrela
2013-10-21Fixed #21288 -- Fixed E126 pep8 warningsAlasdair Nicol
2013-08-09Improved queryset handling and docs for (Single|Multiple)ObjectMixin.Loic Bistuer
2013-05-18Fixed #20235 -- Use self.object_list if object_list not present in ↵Matthew Somerville
get_context_data kwargs. This is so MultipleObjectMixin can be used in the same way as SingleObjectMixin.
2013-02-05Fixed #19689 -- Renamed `Model._meta.module_name` to `model_name`.Simon Charette
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-25Add 'page_kwarg' attribute to `MultipleObjectMixin`, removing hardcoded 'page'.Tom Christie
2012-06-11Fixed #18451 -- Vastly improved class based view documentation.Jannis Leidel
Many thanks to Daniel Greenfeld, James Aylett, Marc Tamlyn, Simon Williams, Danilo Bargen and Luke Plant for their work on this.
2012-06-07Fixed #18269 -- Applied unicode_literals for Python 3 compatibility.Claude Paroz
Thanks Vinay Sajip for the support of his django3 branch and Jannis Leidel for the review.
2012-05-24Removed unneeded smart_str in generic views.Claude Paroz
2012-05-22Fixed #18113 -- Corrected get_template_names docstrings.Claude Paroz
Thanks Keryn Knight for the report.
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-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
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-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-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-02-14Fixed #15287 -- Added translation markers to user-facing error messages in ↵Russell Keith-Magee
class-based generic views. Thanks to szczav for the report and draft patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15533 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-01-27Fixed #15061 -- Removed a redundant method implementation in the class-based ↵Russell Keith-Magee
ModelFormMixin, and did some PEP8 cleanup. Thanks to rasca for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15341 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-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-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-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-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