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

Fixed #31721 -- Allowed ModelForm meta to specify form fields.

This commit is contained in:
Kamil Turek
2022-08-04 20:39:12 +02:00
committed by Mariusz Felisiak
parent 88e67a54b7
commit e03cdf76e7
4 changed files with 63 additions and 13 deletions

View File

@@ -151,7 +151,11 @@ File Uploads
Forms
~~~~~
* ...
* :class:`~django.forms.ModelForm` now accepts the new ``Meta`` option
``formfield_callback`` to customize form fields.
* :func:`~django.forms.models.modelform_factory` now respects the
``formfield_callback`` attribute of the ``form``s ``Meta``.
Generic Views
~~~~~~~~~~~~~