Kaydet (Commit) 3c8c3ff6 authored tarafından Tim Graham's avatar Tim Graham

[2.0.x] Fixed #28777 -- Clarified the docs for admin.register's args.

Backport of abaf0ab4 from master
üst 36dd0126
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment