diff options
| author | Tim Graham <timograham@gmail.com> | 2017-11-09 21:21:43 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-11-09 21:21:43 -0500 |
| commit | abaf0ab4a444977dc8ac07b9b63256814c352245 (patch) | |
| tree | a509139ce4d5d18fdc9836f094403da9be33ae08 /docs | |
| parent | ee49306176a2d2f1751cb890bd607d42c7c09196 (diff) | |
Fixed #28777 -- Clarified the docs for admin.register's args.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/contrib/admin/index.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt index 05f0bfcbbc..76b427c473 100644 --- a/docs/ref/contrib/admin/index.txt +++ b/docs/ref/contrib/admin/index.txt @@ -123,9 +123,9 @@ The ``register`` decorator class AuthorAdmin(admin.ModelAdmin): pass - It is given one or more model classes to register with the ``ModelAdmin`` - and an optional keyword argument ``site`` if you are not using the default - ``AdminSite``:: + It's given one or more model classes to register with the ``ModelAdmin``. + If you're using a custom :class:`AdminSite`, pass it using the ``site`` keyword + argument:: from django.contrib import admin from .models import Author, Reader, Editor |
