summaryrefslogtreecommitdiff
path: root/tests/prefetch_related
AgeCommit message (Collapse)Author
2019-01-10Refs #28478 -- Deprecated TestCase's allow_database_queries and multi_db in ↵Simon Charette
favor of databases.
2018-12-27Followed style guide for model attribute ordering.Matt Wiens
2018-05-27Fixed #29230 -- Fixed nested prefetches that clash with descriptors.Paulo
2018-04-19Fixed #28600 -- Added prefetch_related() support to RawQuerySet.Adnan Umer
2018-02-05Refs #28723 -- Fixed stale prefetch_related cache after add/remove.Jon Dufresne
Regression in 514b2c989a948e3c59bda0da0c9427acf643cf5b.
2018-02-05Made prefetch_related tests use assertCountEqual() for unordered sequences.Jon Dufresne
2017-11-02Fixed #28723 -- Fixed RelatedManager's prefetch_related() cache name.Mike Hansen
2017-08-21Fixed #28375 -- Fixed KeyError crash on reverse prefetch of a model with ↵Paulo
OneToOneField primary key to a non-pk field.
2017-07-29Used assertRaisesMessage() to test Django's error messages.Mads Jensen
2017-06-01Refs #23968 -- Removed unnecessary lists, generators, and tuple calls.Jon Dufresne
2017-06-01Sorted imports per isort 4.2.9.Tim Graham
2017-05-04Refs #25546 -- Added detailed comments for prefetch_related test.François Freitag
2017-05-04Fixed #27554 -- Fixed prefetch_related() crash when fetching relations in ↵François Freitag
nested Prefetches.
2017-04-19Fixed #28096 -- Allowed prefetch calls with ModelIterable subclassesClaude Paroz
Regression in 7ec330eeb96d0874949eacb8ed1bbb97e11807e1. Thanks Tim Graham for the review.
2017-03-17Replaced type-specific assertions with assertEqual().Tim Graham
Python docs say, "it's usually not necessary to invoke these methods directly."
2017-01-25Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand
2017-01-24Removed unneeded force_text calls in the test suiteClaude Paroz
2017-01-18Refs #23919 -- Removed six.<various>_types usageClaude Paroz
Thanks Tim Graham and Simon Charette for the reviews.
2017-01-18Refs #23919 -- Removed python_2_unicode_compatible decorator usageClaude Paroz
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2017-01-17Refs #26226 -- Removed support for related manager classes without a ↵Tim Graham
_apply_rel_filters() method. Per deprecation timeline.
2017-01-09Made prefetch_related SQL inspection tests less brittle.François Freitag
After refs #16614, integers might appear outside the WHERE clause.
2016-11-14Fixed #27463 -- Fixed E741 flake8 warnings.Ramin Farajpour Cami
2016-11-10Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.za
2016-07-19Fixed #26916 -- Fixed prefetch_related when using a cached_property as to_attr.Simon Charette
Thanks Trac alias karyon for the report and Tim for the review.
2016-05-31Fixed #26676 -- Prevented prefetching to_attr from caching its result in ↵Simon Charette
through attr. Thanks Ursidours for the report.
2016-05-03Refs #26565 -- Errored nicely when using Prefetch with a values() queryset.Simon Charette
Thanks Maxime Lorant for the report and Anssi for the suggestion.
2016-04-08Fixed E128 flake8 warnings in tests/.Tim Graham
2016-03-02Fixed #26226 -- Made related managers honor the queryset used for ↵Simon Charette
prefetching their results. Thanks Loïc for the suggested improvements and Tim for the review.
2016-03-02Refs #17001 -- Added a test for custom prefetch related queryset on generic ↵Simon Charette
relations.
2016-02-26Fixed #26264 -- Fixed prefetch_related() crashes with values_list(flat=True)Attila Tovt
2016-02-26Fixed #25279 -- Made prefetch_related_objects() public.Adam Chainz
2016-02-23Used setupTestData in prefetch_related tests.Simon Charette
2016-01-26Fixed #25546 -- Prevented duplicate queries with nested prefetch_related().François Freitag
2015-12-17Fixed #25544 -- Removed duplicate ids in prefetch_related() queries.Ian Foote
2015-11-11Refs #25693 -- Added a regression test for `to_attr` validation on forward m2m.Simon Charette
2015-11-10Fixed #25693 -- Prevented data loss with Prefetch and ManyToManyField.Ian Foote
Thanks to Jamie Matthews for finding and explaining the bug.
2015-09-21Renamed descriptor classes for related objects.Aymeric Augustin
The old names were downright confusing. Some seemed to mean the opposite of what the class actually did. The new names follow a consistent nomenclature: (Forward|Reverse)(ManyToOne|OneToOne|ManyToMany)Descriptor. I mentioned combinations that do not exist in the docstring in order to help people who would search for them in the code base.
2015-09-12Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić
2015-07-27Fixed #21127 -- Started deprecation toward requiring on_delete for ↵Flavio Curella
ForeignKey/OneToOneField
2015-06-18Fixed #24873 -- Prevented nested Prefetch objects from being overwritten.Gagaro
2015-06-15Fixed #24912 -- Fixed prefetch_related failure for UUIDField primary keysBrian King
This resolves a problem on databases besides PostgreSQL when using prefetch_related with a source model that uses a UUID primary key.
2015-02-06Fixed E265 comment styleCollin Anderson
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2014-12-08Fixed #23968 -- Replaced list comprehension with generators and dict ↵Jon Dufresne
comprehension
2014-11-03Fixed #23620 -- Used more specific assertions in the Django test suite.Berker Peksag
2014-09-29Fixed flake8 warnings.Tim Graham
2014-09-29Replaced set([foo, ...]) by {foo, ...} literals. Refs PR 3282.Thomas Chaumeny
Thanks Collin Anderson for the review.
2014-09-09Avoid the word "stupid".Aymeric Augustin
There's always a better word.
2014-06-05Reordered setUp code in prefetch_related tests.Aymeric Augustin
This allows these tests to run on databases that reject duplicate NULL values in unique fields e.g. SQL Server. Forward port of 4fb50a9a from stable/1.7.x.