Added cross reference in admin docs to topic about saving objects in formsets.

This commit is contained in:
P.A. SCHEMBRI 2014-10-29 16:31:40 +01:00 committed by Tim Graham
parent 5c9c1e029d
commit 388c6038fd
1 changed files with 3 additions and 1 deletions

View File

@ -1276,7 +1276,7 @@ templates used by the :class:`ModelAdmin` views:
``ModelForm`` instance and a boolean value based on whether it is adding or
changing the parent object.
For example to attach ``request.user`` to each changed formset
For example, to attach ``request.user`` to each changed formset
model instance::
class ArticleAdmin(admin.ModelAdmin):
@ -1287,6 +1287,8 @@ templates used by the :class:`ModelAdmin` views:
instance.save()
formset.save_m2m()
See also :ref:`saving-objects-in-the-formset`.
.. method:: ModelAdmin.get_ordering(request)
The ``get_ordering`` method takes a``request`` as parameter and