diff options
author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-09-30 18:18:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-30 18:18:33 +0200 |
commit | 5e0aa362d91d000984995ce374c2d7547d8d107f (patch) | |
tree | cb81db29ee76b4c0bb235366de83c130d8dddfaa /tests/model_regress | |
parent | 6cc0f22a73970dd7c0d29d4d8d2ff9e1cc862b30 (diff) | |
download | django-5e0aa362d91d000984995ce374c2d7547d8d107f.tar.gz |
Fixed #33984 -- Reverted "Fixed #32980 -- Made models cache related managers."
This reverts 4f8c7fd9d91b35e2c2922de4bb50c8c8066cbbc6 and adds
two regression tests:
- test_related_manager_refresh(), and
- test_create_copy_with_m2m().
Thanks joeli for the report.
Diffstat (limited to 'tests/model_regress')
-rw-r--r-- | tests/model_regress/test_state.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/model_regress/test_state.py b/tests/model_regress/test_state.py index 1814458ba7..8b0f087829 100644 --- a/tests/model_regress/test_state.py +++ b/tests/model_regress/test_state.py @@ -1,12 +1,7 @@ -from django.db.models.base import ModelState, ModelStateCacheDescriptor +from django.db.models.base import ModelState, ModelStateFieldsCacheDescriptor from django.test import SimpleTestCase class ModelStateTests(SimpleTestCase): def test_fields_cache_descriptor(self): - self.assertIsInstance(ModelState.fields_cache, ModelStateCacheDescriptor) - - def test_related_managers_descriptor(self): - self.assertIsInstance( - ModelState.related_managers_cache, ModelStateCacheDescriptor - ) + self.assertIsInstance(ModelState.fields_cache, ModelStateFieldsCacheDescriptor) |