From bebd4cfa8f5e0d2dff2de5e50d86e849a40f4bb2 Mon Sep 17 00:00:00 2001 From: Hasan Ramezani Date: Wed, 16 Dec 2020 08:08:49 +0100 Subject: [PATCH] Fixed #32273 -- Doc'd AdminSite.unregister(). --- docs/ref/contrib/admin/index.txt | 7 +++++++ docs/spelling_wordlist | 1 + 2 files changed, 8 insertions(+) diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt index 28857e3f255..29af4cbcba6 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 4c9ffc876cf..74a1c30c0c8 100644 --- a/docs/spelling_wordlist +++ b/docs/spelling_wordlist @@ -748,6 +748,7 @@ unpickled unpickling unpopulated unpythonic +Unregisters unrendered unreproducible Unreviewed