mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Fixed #33626 -- Cleared cache when unregistering a lookup.
This commit is contained in:
committed by
Mariusz Felisiak
parent
884b4c27f5
commit
06ebaa9e28
@@ -323,6 +323,8 @@ class LookupTests(TestCase):
|
||||
with register_lookup(models.ForeignObject, Exactly):
|
||||
# getting the lookups again should re-cache
|
||||
self.assertIn("exactly", field.get_lookups())
|
||||
# Unregistration should bust the cache.
|
||||
self.assertNotIn("exactly", field.get_lookups())
|
||||
|
||||
|
||||
class BilateralTransformTests(TestCase):
|
||||
|
||||
Reference in New Issue
Block a user