From da42df9378ce012d72747fbf1160a6afdf5f5095 Mon Sep 17 00:00:00 2001 From: Hasan Ramezani Date: Wed, 16 Dec 2020 08:08:49 +0100 Subject: [PATCH] [3.1.x] Fixed #32273 -- Doc'd AdminSite.unregister(). Backport of bebd4cfa8f5e0d2dff2de5e50d86e849a40f4bb2 from master --- 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 5723865ca3..239fd27d3f 100644 --- a/docs/ref/contrib/admin/index.txt +++ b/docs/ref/contrib/admin/index.txt @@ -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 diff --git a/docs/spelling_wordlist b/docs/spelling_wordlist index 0e18a1c83d..dff7a3918d 100644 --- a/docs/spelling_wordlist +++ b/docs/spelling_wordlist @@ -747,6 +747,7 @@ unpickled unpickling unpopulated unpythonic +Unregisters unrendered unreproducible Unreviewed