File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -1183,7 +1183,7 @@ create a ``ModelForm`` that uses all fields for a model.
1183
1183
For this reason, if you use these views for editing models, you must also supply
1184
1184
the ``fields`` attribute (new in Django 1.6), which is a list of model fields
1185
1185
and works in the same way as the :class:`~django.forms.ModelForm`
1186
- ``Meta.fields`` attribute. Alternatively, you can set set the ``form_class``
1186
+ ``Meta.fields`` attribute. Alternatively, you can set the ``form_class``
1187
1187
attribute to a ``ModelForm`` that explicitly defines the fields to be used.
1188
1188
Defining an ``UpdateView`` or ``CreateView`` subclass to be used with a model
1189
1189
but without an explicit list of fields is deprecated.
You can’t perform that action at this time.
0 commit comments