1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #21753 -- Raised exception when both form_class and fields are specified.

This commit is contained in:
Berker Peksag
2014-11-15 13:17:55 +02:00
committed by Tim Graham
parent 5b26a014a8
commit 343162410f
5 changed files with 40 additions and 0 deletions

View File

@@ -783,6 +783,11 @@ Miscellaneous
``<WSGIRequest: GET '/somepath/'>``). This won't change the behavior of
the :class:`~django.views.debug.SafeExceptionReporterFilter` class.
* Class-based views that use :class:`~django.views.generic.edit.ModelFormMixin`
will raise an :exc:`~django.core.exceptions.ImproperlyConfigured` exception
when both the ``fields`` and ``form_class`` attributes are specified.
Previously, ``fields`` was silently ignored.
.. _deprecated-features-1.8:
Features deprecated in 1.8