Fixed #28777 -- Clarified the docs for admin.register's args.

This commit is contained in:
Tim Graham 2017-11-09 21:21:43 -05:00 committed by GitHub
parent ee49306176
commit abaf0ab4a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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