summaryrefslogtreecommitdiff
path: root/tests/m2m_through/tests.py
Commit message (Collapse)AuthorAgeFilesLines
* Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to ↵Gregor Gärtner2022-10-081-23/+23
| | | | | | assertQuerySetEqual(). Co-Authored-By: Michael Howitz <mh@gocept.com>
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-071-197/+160
|
* Fixed #32947 -- Fixed hash() crash on reverse M2M relation when ↵Tom Wojcik2021-07-261-2/+9
| | | | | | through_fields is a list. Regression in c32d8f33d8e988a376e44997b8f3606d821f305e.
* Fixed #31235 -- Made assertQuerysetEqual() compare querysets directly.Hasan Ramezani2020-11-061-17/+5
| | | | | | | | This also replaces assertQuerysetEqual() to assertSequenceEqual()/assertCountEqual() where appropriate. Co-authored-by: Peter Inglesby <peter.inglesby@gmail.com> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* Fixed #31752 -- Fixed intermittent ↵Carlton Gibson2020-06-301-5/+7
| | | | | | | test_order_by_relational_field_through_model failure. Set explicit datetime for M2M ordering test. Thanks to Mariusz Felisiak for the suggestion.
* Fixed #31046 -- Allowed RelatedManager.add()/create()/set() to accept ↵Baptiste Mispelon2019-12-031-0/+45
| | | | callable values in through_defaults.
* Fixed #30421 -- Allowed symmetrical intermediate table for self-referential ↵Nadège Michel2019-06-211-3/+68
| | | | ManyToManyField.
* Fixed #9475 -- Allowed RelatedManager.add(), create(), etc. for m2m with a ↵Collin Anderson2019-01-151-75/+71
| | | | through model.
* Removed unnecessary trailing commas and spaces in various code.Mariusz Felisiak2017-12-281-3/+3
|
* Removed DatabaseFeatures.supports_microsecond_precision.Tim Graham2017-09-251-2/+1
| | | | MySQL 5.5 (refs #28552) was the last database to use it.
* Refs #23919 -- Removed encoding preambles and future importsClaude Paroz2017-01-181-2/+0
|
* Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.za2016-11-101-1/+1
|
* Fixed #27203 -- Replaced assertQuerysetEqual(..., lambda o: o) with ↵Mads Jensen2016-09-131-8/+5
| | | | assertSequenceEqual().
* Refs #26092 -- Added @skipUnlessDBFeature to a test.Tim Graham2016-01-211-1/+2
|
* Fixed #26092 -- Fixed QuerySet.order_by() regression with an M2M through model.Anssi Kääriäinen2016-01-201-0/+14
|
* Used setupTestData in m2m_through tests.Simon Charette2016-01-061-14/+16
|
* Fixed many spelling mistakes in code, comments, and docs.Josh Soref2015-12-031-4/+4
|
* Fixed #25550 -- Deprecated direct assignment to the reverse side of a ↵Tim Graham2015-10-271-2/+2
| | | | related set.
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-3/+5
|
* Fixed #23862 -- Made ManyToManyRel.get_related_field() respect to_field.Simon Charette2014-11-211-1/+29
|
* Refactored m2m_through tests. Refs #18586Davide Ceretti2014-09-261-274/+291
| | | | Refactored old tests that were rewritten 1:1 from doctests.
* Fixed #14549 - Removed restriction of single FKs on intermediary tablesAkis Kesoglou2014-03-051-1/+28
| | | | | Thanks to Loic Bistuer for review. Minor changes to error messages done by committer.
* Fixed #21763 -- Added an error msg for missing methods on ManyRelatedManager.Robert Stapenhurst2014-02-091-15/+56
| | | | | | Attempting to add() and remove() an object related by a 'through' model now raises more descriptive AttributeErrors, in line with set and create().
* Fix all violators of E231Alex Gaynor2013-10-261-17/+17
|
* Removed unused local variables in tests.Tim Graham2013-10-191-13/+13
|
* Fixed #21268 -- Fixed E303 pep8 warningsAlasdair Nicol2013-10-181-2/+0
|
* Removed most of absolute_import importsClaude Paroz2013-07-291-1/+1
| | | | | Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way.
* Merged regressiontests and modeltests into the test root.Florian Apolloner2013-02-261-0/+345