mirror of
https://github.com/django/django.git
synced 2025-08-08 04:48:27 +00:00
Fixed #33626 -- Cleared cache when unregistering a lookup.
This commit is contained in:
parent
884b4c27f5
commit
06ebaa9e28
4 changed files with 13 additions and 11 deletions
|
@ -217,6 +217,7 @@ class RegisterLookupMixin:
|
|||
if lookup_name is None:
|
||||
lookup_name = lookup.lookup_name
|
||||
del cls.class_lookups[lookup_name]
|
||||
cls._clear_cached_lookups()
|
||||
|
||||
|
||||
def select_related_descend(field, restricted, requested, load_fields, reverse=False):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue