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:
committed by
Tim Graham
parent
5b26a014a8
commit
343162410f
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user