1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #33626 -- Cleared cache when unregistering a lookup.

This commit is contained in:
Himanshu-Balasamanta
2022-04-08 15:21:51 +05:30
committed by Mariusz Felisiak
parent 884b4c27f5
commit 06ebaa9e28
4 changed files with 13 additions and 11 deletions

View File

@@ -88,7 +88,6 @@ class TestMethods(SimpleTestCase):
transform = field.get_transform("my_transform")
self.assertIs(transform, MyTransform)
models.JSONField._unregister_lookup(MyTransform)
models.JSONField._clear_cached_lookups()
transform = field.get_transform("my_transform")
self.assertIsInstance(transform, KeyTransformFactory)