Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions docs/admin.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,12 @@ Update existing actions templates to be managed by concurrency

.. versionadded:: 0.6

You ca use the :tfilter:`identity`filter to pass both ``pk`` and ``version`` to your ModelAdmin.
Each time you use ``{{obj.pk}}`` simply change to ``{{ obj|identity }}``.
So in the ``admin/delete_selected_confirmation.html`` will have::
You ca use the :tfilter:`identity` filter to pass both ``pk`` and ``version`` to your ModelAdmin.
Each time you use ``{{ obj.pk }}`` simply change to ``{{ obj|identity }}``.
So in the ``admin/delete_selected_confirmation.html`` will have:

.. code-block:: html

{% for obj in queryset %}
<input type="hidden" name="{{ action_checkbox_name }}" value="{{ obj|identity }}" />
{% endfor %}