mirror of
https://github.com/django/django.git
synced 2025-11-02 21:03:53 +00:00
Corrected admin.register() signature in docs.
This commit is contained in:
parent
95da207bdb
commit
eb215da363
1 changed files with 1 additions and 1 deletions
|
|
@ -116,7 +116,7 @@ Other topics
|
||||||
The ``register`` decorator
|
The ``register`` decorator
|
||||||
--------------------------
|
--------------------------
|
||||||
|
|
||||||
.. function:: register(*models, site=django.admin.sites.site)
|
.. function:: register(*models, site=django.contrib.admin.sites.site)
|
||||||
|
|
||||||
There is also a decorator for registering your ``ModelAdmin`` classes::
|
There is also a decorator for registering your ``ModelAdmin`` classes::
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue