diff --git a/docs/topics/forms/formsets.txt b/docs/topics/forms/formsets.txt
a
|
b
|
|
109 | 109 | |
110 | 110 | As we can see the formset properly performed validation and gave us the |
111 | 111 | expected errors. |
| 112 | |
| 113 | .. _understanding-the-managementform: |
112 | 114 | |
113 | 115 | Understanding the ManagementForm |
114 | 116 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
diff --git a/docs/topics/forms/modelforms.txt b/docs/topics/forms/modelforms.txt
a
|
b
|
|
196 | 196 | ``commit=False``, then it will return an object that hasn't yet been saved to |
197 | 197 | the database. In this case, it's up to you to call ``save()`` on the resulting |
198 | 198 | model instance. This is useful if you want to do custom processing on the |
199 | | object before saving it, or if you want to use on of the specialised |
| 199 | object before saving it, or if you want to use one of the specialised |
200 | 200 | :ref:`model saving options <ref-models-force-insert>`. ``commit`` is ``True`` by default. |
201 | 201 | |
202 | 202 | Another side effect of using ``commit=False`` is seen when your model has |
… |
… |
|
272 | 272 | class Meta: |
273 | 273 | model = Author |
274 | 274 | fields = ('name', 'title') |
275 | | |
| 275 | |
276 | 276 | class PartialAuthorForm(ModelForm): |
277 | 277 | class Meta: |
278 | 278 | model = Author |
… |
… |
|
429 | 429 | method:: |
430 | 430 | |
431 | 431 | from django.forms.models import BaseModelFormSet |
432 | | |
| 432 | |
433 | 433 | class BaseAuthorFormSet(BaseModelFormSet): |
434 | 434 | def get_queryset(self): |
435 | 435 | return super(BaseAuthorFormSet, self).get_queryset().filter(name__startswith='O') |
… |
… |
|
496 | 496 | |
497 | 497 | >>> Author.objects.order_by('name') |
498 | 498 | [<Author: Charles Baudelaire>, <Author: Paul Verlaine>, <Author: Walt Whitman>] |
499 | | |
| 499 | |
500 | 500 | >>> AuthorFormSet = modelformset_factory(Author, max_num=2, extra=1) |
501 | 501 | >>> formset = AuthorFormSet(queryset=Author.objects.order_by('name')) |
502 | 502 | >>> formset.initial |