diff options
author | Claude Paroz <claude@2xlibre.net> | 2014-12-24 14:58:32 +0100 |
---|---|---|
committer | Claude Paroz <claude@2xlibre.net> | 2014-12-24 14:58:32 +0100 |
commit | fae551d765bc24103ce1b9782aa264246abfa2b8 (patch) | |
tree | 517f23d511be1e73324b8f7b896aacb2eca7c023 /tests/queryset_pickle/tests.py | |
parent | 7ce9644d9347455ae6f9bd383788a65e4bcadda3 (diff) | |
download | django-fae551d765bc24103ce1b9782aa264246abfa2b8.tar.gz |
Complemented pickle test for ValuesQuerySet with related field
Refs #14515.
Diffstat (limited to 'tests/queryset_pickle/tests.py')
-rw-r--r-- | tests/queryset_pickle/tests.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/queryset_pickle/tests.py b/tests/queryset_pickle/tests.py index a48b9591ab..22b61199f4 100644 --- a/tests/queryset_pickle/tests.py +++ b/tests/queryset_pickle/tests.py @@ -100,6 +100,11 @@ class PickleabilityTestCase(TestCase): self.assert_pickles(Happening.objects.values('name')) self.assert_pickles(Happening.objects.values('name').dates('when', 'year')) + # ValuesQuerySet with related field (#14515) + self.assert_pickles( + Event.objects.select_related('group').order_by('title').values_list('title', 'group__name') + ) + def test_pickle_prefetch_related_idempotence(self): g = Group.objects.create(name='foo') groups = Group.objects.prefetch_related('event_set') |