Skip to content

Commit

Permalink
Update modeladmin docs
Browse files Browse the repository at this point in the history
  • Loading branch information
bhch committed Jan 3, 2022
1 parent 81b3d01 commit 5660b77
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/modeladmin.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@ These models are pseudo-code.
price = IntField
``ModelAdmin.exclude``
----------------------

A list of fields to exclude from the admin form page.

.. code-block:: python
class BookAdmin(ModelAdmin):
exclude = ['price']
``ModelAdmin.prefetch_fields``
------------------------------

Expand Down

0 comments on commit 5660b77

Please sign in to comment.