summaryrefslogtreecommitdiff
path: root/tests/m2m_through
AgeCommit message (Collapse)Author
2025-07-23Refs #36500 -- Rewrapped long docstrings and block comments via a script.django-bot
Rewrapped long docstrings and block comments to 79 characters + newline using script from https://github.com/medmunds/autofix-w505.
2025-02-18Fixed #36197 -- Fixed improper many-to-many count() and exists() for non-pk ↵Simon Charette
to_field. Regression in 66e47ac69a7e71cf32eee312d05668d8f1ba24bb. Thanks mfontana-elem for the report and Sarah for the tests.
2022-10-08Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to ↵Gregor Gärtner
assertQuerySetEqual(). Co-Authored-By: Michael Howitz <mh@gocept.com>
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2021-07-26Fixed #32947 -- Fixed hash() crash on reverse M2M relation when ↵Tom Wojcik
through_fields is a list. Regression in c32d8f33d8e988a376e44997b8f3606d821f305e.
2020-11-06Fixed #31235 -- Made assertQuerysetEqual() compare querysets directly.Hasan Ramezani
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>
2020-06-30Fixed #31752 -- Fixed intermittent ↵Carlton Gibson
test_order_by_relational_field_through_model failure. Set explicit datetime for M2M ordering test. Thanks to Mariusz Felisiak for the suggestion.
2020-04-30Removed unused __str__() methods in tests models.Mariusz Felisiak
Follow up to 6461583b6cc257d25880ef9a9fd7e2125ac53ce1.
2019-12-03Fixed #31046 -- Allowed RelatedManager.add()/create()/set() to accept ↵Baptiste Mispelon
callable values in through_defaults.
2019-06-21Fixed #30421 -- Allowed symmetrical intermediate table for self-referential ↵Nadège Michel
ManyToManyField.
2019-01-15Fixed #9475 -- Allowed RelatedManager.add(), create(), etc. for m2m with a ↵Collin Anderson
through model.
2018-12-27Followed style guide for model attribute ordering.Matt Wiens
2017-12-28Removed unnecessary trailing commas and spaces in various code.Mariusz Felisiak
2017-09-25Removed DatabaseFeatures.supports_microsecond_precision.Tim Graham
MySQL 5.5 (refs #28552) was the last database to use it.
2017-01-18Refs #23919 -- Removed python_2_unicode_compatible decorator usageClaude Paroz
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2016-11-10Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.za
2016-09-13Fixed #27203 -- Replaced assertQuerysetEqual(..., lambda o: o) with ↵Mads Jensen
assertSequenceEqual().
2016-01-21Refs #26092 -- Added @skipUnlessDBFeature to a test.Tim Graham
2016-01-20Fixed #26092 -- Fixed QuerySet.order_by() regression with an M2M through model.Anssi Kääriäinen
2016-01-06Used setupTestData in m2m_through tests.Simon Charette
2015-12-03Fixed many spelling mistakes in code, comments, and docs.Josh Soref
2015-10-27Fixed #25550 -- Deprecated direct assignment to the reverse side of a ↵Tim Graham
related set.
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-02-06Sorted imports with isort; refs #23860.Tim Graham
2014-11-21Fixed #23862 -- Made ManyToManyRel.get_related_field() respect to_field.Simon Charette
2014-09-26Refactored m2m_through tests. Refs #18586Davide Ceretti
Refactored old tests that were rewritten 1:1 from doctests.
2014-03-05Fixed #14549 - Removed restriction of single FKs on intermediary tablesAkis Kesoglou
Thanks to Loic Bistuer for review. Minor changes to error messages done by committer.
2014-02-09Fixed #21763 -- Added an error msg for missing methods on ManyRelatedManager.Robert Stapenhurst
Attempting to add() and remove() an object related by a 'through' model now raises more descriptive AttributeErrors, in line with set and create().
2013-11-02PEP8 cleanupJason Myers
Signed-off-by: Jason Myers <jason@jasonamyers.com>
2013-10-26Fix all violators of E231Alex Gaynor
2013-10-19Removed unused local variables in tests.Tim Graham
2013-10-18Fixed #21268 -- Fixed E303 pep8 warningsAlasdair Nicol
2013-09-09Removed unneeded imports in tests's __init__.py and unified them.Florian Apolloner
2013-07-29Removed most of absolute_import importsClaude Paroz
Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way.
2013-02-26Merged regressiontests and modeltests into the test root.Florian Apolloner