summaryrefslogtreecommitdiff
path: root/tests/one_to_one
diff options
context:
space:
mode:
Diffstat (limited to 'tests/one_to_one')
-rw-r--r--tests/one_to_one/tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/one_to_one/tests.py b/tests/one_to_one/tests.py
index 82a061b736..65257cf7dc 100644
--- a/tests/one_to_one/tests.py
+++ b/tests/one_to_one/tests.py
@@ -207,7 +207,7 @@ class OneToOneTests(TestCase):
self.assertIs(p.restaurant, r)
# But if we kill the cache, we get a new object
- del p._restaurant_cache
+ del p._state.fields_cache['restaurant']
self.assertIsNot(p.restaurant, r)
# Reassigning the Restaurant object results in an immediate cache update