summaryrefslogtreecommitdiff
path: root/django/views/generic/edit.py
AgeCommit message (Collapse)Author
2025-07-23Removed double spaces after periods and within phrases.Sarah Boyce
2024-10-15Fixed #35682 -- Updated docstrings for base view classes which require a ↵Yash
response mixin.
2023-01-17Refs #33263 -- Removed warning in BaseDeleteView when delete() method is ↵Mariusz Felisiak
overridden.
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2021-11-09Refs #33263 -- Added warning to BaseDeleteView when delete() method is ↵Mariusz Felisiak
overridden. Follow up to 3a45fea0832c5910acee6e0d29f230f347a50462.
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-01-03Fixed #28985 -- Removed unneeded None checks before hasattr().Дилян Палаузов
2017-11-06Fixed #28776 -- Fixed a/an/and typos in docs and comments.Дилян Палаузов
2017-04-27Refs #27795 -- Replaced many force_text() with str()Claude Paroz
Thanks Tim Graham for the review.
2017-03-03Refs #27656 -- Updated django.views docstring verbs according to PEP 257.Anton Samarchyan
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
2016-12-08Added period in BaseFormView docstring.Collederas
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-11-11Fixed #25548 -- Prevented FormView.form_invalid() from discarding its form ↵Alex Morozov
argument.
2015-09-23Refs #23656 -- Required FormMixin.get_form() form_class parameter to be ↵Tim Graham
optional. Per deprecation timeline.
2015-09-23Refs #24133 -- Removed legacy formatting syntax in success_url placeholders.Tim Graham
Per deprecation timeline.
2015-06-24Renamed RemovedInDjangoXYWarnings for new roadmap.Tim Graham
Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more.
2015-04-24Fixed #24643 -- Added get_context_data() method to FormMixinAndrei Kulakov
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-01-26Fixed #24220 - Allowed lazy objects for success_urlTomáš Ehrlich
2015-01-26Fixed #24221 - Used precompiled regexp for percent-placeholder matching.Tomáš Ehrlich
2015-01-12Fixed #24133 -- Replaced formatting syntax in success_url placeholdersClaude Paroz
Thanks Laurent Payot for the report, and Markus Holtermann, Tim Graham for the reviews.
2014-11-21Fixed #21753 -- Raised exception when both `form_class` and `fields` are ↵Berker Peksag
specified.
2014-10-30Fixed #23656 -- Made FormMixin.get_form's form_class argument optional.Simon Charette
Thanks Tim Graham for the review.
2014-03-22Made ModelForms raise ImproperlyConfigured if the list of fields is not ↵Tim Graham
specified. Also applies to modelform(set)_factory and generic model views. refs #19733.
2014-03-08Fixed #21188 -- Introduced subclasses for to-be-removed-in-django-XX warningsClaude Paroz
Thanks Anssi Kääriäinen for the idea and Simon Charette for the review.
2014-02-09Fixed #21967: Added check for object in ModelFormMixin.get_form_kwargs.Ryan Kaskel
Thanks lagovas.lagovas at gmail.com for the report.
2013-06-29Advanced deprecation warnings for Django 1.7.Aymeric Augustin
2013-06-24Fixed #20644 -- Add ModelFormMixin.fields to the CBV flattened indexBaptiste Mispelon
Thanks to Tim Graham for the report and review.
2013-06-22Fixed #18872 -- Added prefix to FormMixinGilberto Gonçalves
Thanks @ibustama for the initial patch and dragonsnaker for opening the report.
2013-06-11Fixed #20585: normalize signature of DeletionMixin.post.Baptiste Darthenay
2013-05-18Fixed #20234 and #20236 -- SingleObjectMixin fixesKarol Sikora
Added object on SingleObjectMixin returned context, some code clanup.
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-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.
2012-12-04Fixed #19378 -- Ensured get_success_url returns a non-lazy URLClaude Paroz
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-04-28fix typo: instanciating -> instantiatingTom Terrace
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
2011-03-06Fixed #15560 -- Cleaned up some redundant post->put redirections in the ↵Russell Keith-Magee
class-based generic views. Thanks to maney for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15763 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-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
2010-12-10Add FormMixin.get_form_kwargs method to abstract some common logic in a tidierChris Beaven
way. Tidy up (and amend) documentation about FormMixin and ModelFormMixin. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14865 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-10-28Fixed #14558 -- Modified the way PUT and DELETE HTTP methods are handled so ↵Russell Keith-Magee
that overridden methods will get used correctly. Thanks to pyrou for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14374 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-28Fixed #14568 -- Use keyword rather than positional arguments for form ↵Russell Keith-Magee
construction. Thanks to mattmcc for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14371 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-20Modified the implementation of get_object() to be consistent with the ↵Russell Keith-Magee
approach used elsewhere in the API. Also added documentation for get_object() which seems to have been accidentally omitted. This is a BACKWARDS-INCOMPATIBLE CHANGE for anyone depending on the API for get_object() that was introduced (but not documented) in r14254. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14292 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-19Fixed #14495 -- DeletionMixin and FormMixin don't have an object to work ↵Honza Král
with so they cannot redirect to get_absolute_url and shouldn't claim they do. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14284 bcc190cf-cafb-0310-a4f2-bffc1f526a37