Fixed a typo in 1.6 release notes.

This commit is contained in:
aruseni 2014-11-09 22:31:53 +01:00 committed by Tim Graham
parent 091f5b5a4e
commit 006451f894
1 changed files with 1 additions and 1 deletions

View File

@ -1183,7 +1183,7 @@ create a ``ModelForm`` that uses all fields for a model.
For this reason, if you use these views for editing models, you must also supply For this reason, if you use these views for editing models, you must also supply
the ``fields`` attribute (new in Django 1.6), which is a list of model fields the ``fields`` attribute (new in Django 1.6), which is a list of model fields
and works in the same way as the :class:`~django.forms.ModelForm` and works in the same way as the :class:`~django.forms.ModelForm`
``Meta.fields`` attribute. Alternatively, you can set set the ``form_class`` ``Meta.fields`` attribute. Alternatively, you can set the ``form_class``
attribute to a ``ModelForm`` that explicitly defines the fields to be used. attribute to a ``ModelForm`` that explicitly defines the fields to be used.
Defining an ``UpdateView`` or ``CreateView`` subclass to be used with a model Defining an ``UpdateView`` or ``CreateView`` subclass to be used with a model
but without an explicit list of fields is deprecated. but without an explicit list of fields is deprecated.