Fixed #6114. Fixed a typo in the modelforms docs. Thanks, Martin Conte Mac Donell.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6863 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
bd400a368d
commit
ed74763750
|
@ -276,7 +276,7 @@ model fields:
|
||||||
for the missing, but required fields, or use ``save(commit=False)`` and
|
for the missing, but required fields, or use ``save(commit=False)`` and
|
||||||
manually set anyextra required fields::
|
manually set anyextra required fields::
|
||||||
|
|
||||||
instance = Instance(requiured_field='value')
|
instance = Instance(required_field='value')
|
||||||
form = InstanceForm(instance, request.POST)
|
form = InstanceForm(instance, request.POST)
|
||||||
new_instance = form.save()
|
new_instance = form.save()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue