summaryrefslogtreecommitdiff
path: root/tests/model_fields
diff options
context:
space:
mode:
authorHimanshu-Balasamanta <himanshubb.eee18@itbhu.ac.in>2022-04-08 15:21:51 +0530
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-04-12 06:24:02 +0200
commit06ebaa9e287137d4496a2736b055f1c6aed95839 (patch)
treeed6f120b3dc2138413517d827b0f5aa6bde569fa /tests/model_fields
parent884b4c27f506b3c29d58509fc83a35c30ea10d94 (diff)
Fixed #33626 -- Cleared cache when unregistering a lookup.
Diffstat (limited to 'tests/model_fields')
-rw-r--r--tests/model_fields/test_jsonfield.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/model_fields/test_jsonfield.py b/tests/model_fields/test_jsonfield.py
index 38c92fc518..60cc694843 100644
--- a/tests/model_fields/test_jsonfield.py
+++ b/tests/model_fields/test_jsonfield.py
@@ -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)