summaryrefslogtreecommitdiff
path: root/django/apps/registry.py
diff options
context:
space:
mode:
authorsobolevn <mail@sobolevn.me>2023-06-29 16:13:14 +0300
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2023-06-30 08:27:15 +0200
commit5820fc44854e421e4ebaaddb34d7109ff15e1148 (patch)
treea8621e3243ab1cb9a892c60d047413d8563502cd /django/apps/registry.py
parent953f29f700a60fc09b08b2c2270c12c447490c6a (diff)
Fixed #34687 -- Made Apps.clear_cache() clear get_swappable_settings_name() cache.
Diffstat (limited to 'django/apps/registry.py')
-rw-r--r--django/apps/registry.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/django/apps/registry.py b/django/apps/registry.py
index 0683f3ad3c..92de6075fc 100644
--- a/django/apps/registry.py
+++ b/django/apps/registry.py
@@ -373,6 +373,7 @@ class Apps:
This is mostly used in tests.
"""
+ self.get_swappable_settings_name.cache_clear()
# Call expire cache on each model. This will purge
# the relation tree and the fields cache.
self.get_models.cache_clear()