mirror of https://github.com/django/django.git
[3.1.x] Fixed #32273 -- Doc'd AdminSite.unregister().
Backport of bebd4cfa8f
from master
This commit is contained in:
parent
1fb99795e7
commit
da42df9378
|
@ -2947,6 +2947,13 @@ Templates can override or extend base admin templates as described in
|
|||
abstract. and ``django.contrib.admin.sites.AlreadyRegistered`` if a model
|
||||
is already registered.
|
||||
|
||||
.. method:: AdminSite.unregister(model_or_iterable)
|
||||
|
||||
Unregisters the given model class (or iterable of classes).
|
||||
|
||||
Raises ``django.contrib.admin.sites.NotRegistered`` if a model isn't
|
||||
already registered.
|
||||
|
||||
.. _hooking-adminsite-to-urlconf:
|
||||
|
||||
Hooking ``AdminSite`` instances into your URLconf
|
||||
|
|
|
@ -747,6 +747,7 @@ unpickled
|
|||
unpickling
|
||||
unpopulated
|
||||
unpythonic
|
||||
Unregisters
|
||||
unrendered
|
||||
unreproducible
|
||||
Unreviewed
|
||||
|
|
Loading…
Reference in New Issue