Kaydet (Commit) 388c6038 authored tarafından P.A. SCHEMBRI's avatar P.A. SCHEMBRI Kaydeden (comit) Tim Graham

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

üst 5c9c1e02
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment