Renamed admin doc image files to match the documentation they are for.
Before Width: | Height: | Size: 103 KiB After Width: | Height: | Size: 103 KiB |
Before Width: | Height: | Size: 91 KiB After Width: | Height: | Size: 91 KiB |
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 65 KiB |
Before Width: | Height: | Size: 64 KiB After Width: | Height: | Size: 64 KiB |
Before Width: | Height: | Size: 62 KiB After Width: | Height: | Size: 62 KiB |
|
@ -18,7 +18,7 @@ action; Django ships with a "delete selected objects" action available to all
|
|||
models. For example, here's the user module from Django's built-in
|
||||
:mod:`django.contrib.auth` app:
|
||||
|
||||
.. image:: _images/user_actions.png
|
||||
.. image:: _images/admin-actions.png
|
||||
|
||||
.. warning::
|
||||
|
||||
|
@ -134,7 +134,7 @@ the action and its registration would look like::
|
|||
|
||||
That code will give us an admin change list that looks something like this:
|
||||
|
||||
.. image:: _images/article_actions.png
|
||||
.. image:: _images/adding-actions-to-the-modeladmin.png
|
||||
|
||||
That's really all there is to it! If you're itching to write your own actions,
|
||||
you now know enough to get started. The rest of this document just covers more
|
||||
|
@ -202,7 +202,7 @@ that the action was successful::
|
|||
This make the action match what the admin itself does after successfully
|
||||
performing an action:
|
||||
|
||||
.. image:: _images/article_actions_message.png
|
||||
.. image:: _images/actions-as-modeladmin-methods.png
|
||||
|
||||
Actions that provide intermediate pages
|
||||
---------------------------------------
|
||||
|
|
|
@ -336,7 +336,7 @@ subclass::
|
|||
|
||||
This results in an admin page that looks like:
|
||||
|
||||
.. image:: _images/flatfiles_admin.png
|
||||
.. image:: _images/fieldsets.png
|
||||
|
||||
If neither ``fieldsets`` nor :attr:`~ModelAdmin.fields` options are present,
|
||||
Django will default to displaying each field that isn't an ``AutoField`` and
|
||||
|
@ -802,7 +802,7 @@ subclass::
|
|||
Set ``list_filter`` to activate filters in the right sidebar of the change
|
||||
list page of the admin, as illustrated in the following screenshot:
|
||||
|
||||
.. image:: _images/users_changelist.png
|
||||
.. image:: _images/list_filter.png
|
||||
|
||||
``list_filter`` should be a list or tuple of elements, where each element
|
||||
should be of one of the following types:
|
||||
|
|