summaryrefslogtreecommitdiff
path: root/tests/generic_views/views.py
AgeCommit message (Collapse)Author
2023-02-01Refs #33476 -- Applied Black's 2023 stable style.David Smith
Black 23.1.0 is released which, as the first release of the year, introduces the 2023 stable style. This incorporates most of last year's preview style. https://github.com/psf/black/releases/tag/23.1.0
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2021-07-14Fixed #21936 -- Allowed DeleteView to work with custom Forms and ↵Carlton Gibson
SuccessMessageMixin. Thanks to Mariusz Felisiak for review. Co-authored-by: Demetris Stavrou <demestav@gmail.com> Co-authored-by: Caroline Simpson <github@hoojiboo.com>
2018-10-30Increased test coverage of django/views/generic/dates.py.Hasan Ramezani
2017-11-07Fixed #28719 -- Added a helpful exception if ↵Bjorn Kristinsson
MultipleObjectTemplateResponseMixin doesn't generate any template names.
2017-01-25Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand
2017-01-19Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2015-12-31Fixed #26013 -- Moved django.core.urlresolvers to django.urls.Marten Kenbeek
Thanks to Tim Graham for the review.
2015-12-30Fixed #26018 -- Prevented unecessary get_form() call in ↵Chris Cogdon
FormMixin.get_context_data(). Changed "dict.setdefault" to "if x in dict" pattern so that get_form() would not be called unnecessarily, specifically in the case where FormMixin.form_invalid() calls get_context_data() with the current form.
2015-12-30Fixed #26006 -- Fixed incorrect object reference in ↵Chris Cogdon
SingleObjectMixin.get_context_object_name().
2015-11-11Fixed #25548 -- Prevented FormView.form_invalid() from discarding its form ↵Alex Morozov
argument.
2015-11-07Renamed a test file that has no tests.lobziik
2015-03-05Converted test fixtures to setUpTestData methodsJosh Smeaton
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-01-26Fixed #24220 - Allowed lazy objects for success_urlTomáš Ehrlich
2014-08-15Fixed #18355 -- Added ordering options to list based generic views.Peter Harley
Added MultipleObjectMixin.ordering and get_ordering(). Refs #21450.
2013-12-15Fixed #21619 -- Made SingleObjectMixin.get_object catch a more precise ↵Peter Harley
exception. Thanks to Keryn Knight for the report.
2013-11-02PEP8 cleanupJason Myers
Signed-off-by: Jason Myers <jason@jasonamyers.com>
2013-11-02Fixed flake8 E241Boryslav Larin
2013-10-26Fix all violators of E231Alex Gaynor
2013-10-23Fixed #21298 -- Fixed E301 pep8 warningsAlasdair Nicol
2013-09-06adds fix for SingleObjectTemplateResponseMixin raising a ↵Ian Wilson
TemplateDoesNotExist when it should have raised an ImproperlyConfigured. fixes 16502. by @ianawilson, @jambonrose
2013-07-29Removed most of absolute_import importsClaude Paroz
Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way.
2013-05-18Fixed #20234 and #20236 -- SingleObjectMixin fixesKarol Sikora
Added object on SingleObjectMixin returned context, some code clanup.
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-05-09Fixed #19733 - deprecated ModelForms without 'fields' or 'exclude', and ↵Luke Plant
added '__all__' shortcut This also updates all dependent functionality, including modelform_factory and modelformset_factory, and the generic views `ModelFormMixin`, `CreateView` and `UpdateView` which gain a new `fields` attribute.
2013-04-12Modified generic_views for unittest2 discovery.Preston Timmons
2013-03-19Fixed #16319 -- added SuccessMessageMixin to contrib.messagesPaul Collins
Thanks martinogden for the initial patch and d1ffuz0r for tests.
2013-02-26Merged regressiontests and modeltests into the test root.Florian Apolloner