diff options
| author | Hasan Ramezani <hasan.r67@gmail.com> | 2020-12-16 08:08:49 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-16 08:08:49 +0100 |
| commit | bebd4cfa8f5e0d2dff2de5e50d86e849a40f4bb2 (patch) | |
| tree | 48e95995789af05bc442afa2c014c829a82b6dd6 /docs | |
| parent | 0ecc70b15aa3831c3945f55c1139ae15900b6104 (diff) | |
Fixed #32273 -- Doc'd AdminSite.unregister().
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/contrib/admin/index.txt | 7 | ||||
| -rw-r--r-- | docs/spelling_wordlist | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt index 28857e3f25..29af4cbcba 100644 --- a/docs/ref/contrib/admin/index.txt +++ b/docs/ref/contrib/admin/index.txt @@ -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 diff --git a/docs/spelling_wordlist b/docs/spelling_wordlist index 4c9ffc876c..74a1c30c0c 100644 --- a/docs/spelling_wordlist +++ b/docs/spelling_wordlist @@ -748,6 +748,7 @@ unpickled unpickling unpopulated unpythonic +Unregisters unrendered unreproducible Unreviewed |
