1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Fixed #32273 -- Doc'd AdminSite.unregister().

This commit is contained in:
Hasan Ramezani 2020-12-16 08:08:49 +01:00 committed by GitHub
parent 0ecc70b15a
commit bebd4cfa8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -2953,6 +2953,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

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