[3.1.x] Fixed #32273 -- Doc'd AdminSite.unregister().

Backport of bebd4cfa8f from master
This commit is contained in:
Hasan Ramezani 2020-12-16 08:08:49 +01:00 committed by Mariusz Felisiak
parent 1fb99795e7
commit da42df9378
2 changed files with 8 additions and 0 deletions

View File

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

View File

@ -747,6 +747,7 @@ unpickled
unpickling
unpopulated
unpythonic
Unregisters
unrendered
unreproducible
Unreviewed