mirror of https://github.com/django/django.git
[3.0.x] Corrected admin.register() signature in docs.
Backport of eb215da363
from master
This commit is contained in:
parent
e0397e11b5
commit
8f8d4b3d52
|
@ -109,7 +109,7 @@ Other topics
|
|||
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::
|
||||
|
||||
|
|
Loading…
Reference in New Issue