Commit 92628cc9 authored by P.A. SCHEMBRI's avatar P.A. SCHEMBRI Committed by Tim Graham
Browse files

[1.7.x] Added cross reference in admin docs to topic about saving objects in formsets.

Backport of 388c6038 from master
parent 21358e72
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1261,7 +1261,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):
@@ -1272,6 +1272,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