diff options
author | Paulo <commonzenpython@gmail.com> | 2016-06-04 16:10:37 -0700 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2017-08-10 12:06:02 -0400 |
commit | bfb746f983aa741afa3709794e70f1e0ab6040b5 (patch) | |
tree | 48b4a70b1d5119d75157dcae5283f881117fd0a4 /tests/one_to_one | |
parent | 22ff86ec52bb536ad9d1fa3ee0c9a3d5eb9925c1 (diff) | |
download | django-bfb746f983aa741afa3709794e70f1e0ab6040b5.tar.gz |
Refs #16043 -- Refactored internal fields value cache.
* Removed all hardcoded logic for _{fieldname}_cache.
* Added an internal API for interacting with the field values cache.
Thanks carljm and MarkusH for support.
Diffstat (limited to 'tests/one_to_one')
-rw-r--r-- | tests/one_to_one/tests.py | 2 |
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 |