summaryrefslogtreecommitdiff
path: root/tests/many_to_many/models.py
AgeCommit message (Collapse)Author
2024-02-16Fixed #29725 -- Removed unnecessary join in QuerySet.count() and exists() on ↵ontowhee
a many to many relation. Co-Authored-By: Shiwei Chen <april.chen.0615@gmail.com>
2024-01-26Applied Black's 2024 stable style.Mariusz Felisiak
https://github.com/psf/black/releases/tag/24.1.0
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2019-05-07Refs #26678 -- Added tests for using the field the relation points to with ↵Tobias Kunze
RelatedManager.add()/remove()/set().
2019-04-15Refs #30325 -- Added tests for using count()/exists() with custom managers ↵Tobias Kunze
and reverse M2M relations.
2019-04-15Fixed #30325 -- Reverted "Fixed #29725 -- Removed unnecessary join in ↵Mariusz Felisiak
QuerySet.count() and exists() on a many-to-many relation." This reverts commit 1299421cadc4fcf63585f2f88337078e43e660e0 due to a regression with custom managers.
2018-12-27Followed style guide for model attribute ordering.Matt Wiens
2018-10-15Fixed #29725 -- Removed unnecessary join in QuerySet.count() and exists() on ↵oliver
a many-to-many relation.
2017-01-26Refs #23919, #27778 -- Removed obsolete mentions of unicode.Vytis Banaitis
2017-01-18Refs #23919 -- Removed python_2_unicode_compatible decorator usageClaude Paroz
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2016-09-09Refs #25415 -- Fixed invalid models in the test suite.Adam Chainz
2015-12-25Fixed #14286 -- Added models.BigAutoField.Alexander Sosnovskiy
2015-05-12Fixed #24156 -- Fixed inherited related name of ManyToManyField.Andriy Sokolovskiy
Fixed situation when parent abstract model declares related_name='+', and child models had an invalid queryset.
2014-09-24Removed numbering from the models.py header of some test packages.Loic Bistuer
This is a reliqua from the early days of the modeltests/regressiontests era.
2013-11-02PEP8 cleanupJason Myers
Signed-off-by: Jason Myers <jason@jasonamyers.com>
2013-04-05Fixed #20207 -- Handle ManyToManyField with a unicode name correctly.Simon Charette
2013-02-26Merged regressiontests and modeltests into the test root.Florian Apolloner