Loading docs/ref/contrib/admin/index.txt +3 −1 Original line number Diff line number Diff line Loading @@ -1136,7 +1136,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): Loading @@ -1147,6 +1147,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 Loading Loading
docs/ref/contrib/admin/index.txt +3 −1 Original line number Diff line number Diff line Loading @@ -1136,7 +1136,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): Loading @@ -1147,6 +1147,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 Loading