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/prefetch_related | |
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/prefetch_related')
-rw-r--r-- | tests/prefetch_related/tests.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/tests/prefetch_related/tests.py b/tests/prefetch_related/tests.py index 4c92ccc9ca..4faf13bcaf 100644 --- a/tests/prefetch_related/tests.py +++ b/tests/prefetch_related/tests.py @@ -1358,14 +1358,6 @@ class ForeignKeyToFieldTest(TestCase): ], ) - def test_m2m_manager_reused(self): - author = Author.objects.prefetch_related( - "favorite_authors", - "favors_me", - ).first() - self.assertIs(author.favorite_authors, author.favorite_authors) - self.assertIs(author.favors_me, author.favors_me) - class LookupOrderingTest(TestCase): """ |