Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/many_to_many
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #25550 -- Deprecated direct assignment to the ↵Tim Graham2015-10-271-11/+41
| | | | reverse side of a related set.
* Renamed descriptor classes for related objects.Aymeric Augustin2015-09-211-2/+2
| | | | | | | | | | | | 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.
* Fixed #24156 -- Fixed inherited related name of ↵Andriy Sokolovskiy2015-05-132-1/+43
| | | | | | | ManyToManyField. Fixed situation when parent abstract model declares related_name='+', and child models had an invalid queryset.
* Merged ManyRelatedObjectsDescriptor and ↵Loic Bistuer2015-02-161-1/+1
| | | | | | | ReverseManyRelatedObjectsDescriptor and made all "many" related objects descriptors inherit from ForeignRelatedObjectsDescriptor.
* Fixed #6707 -- Added RelatedManager.set() and made ↵Loic Bistuer2015-02-051-0/+39
| | | | | | descriptors' __set__ use it. Thanks Anssi Kääriäinen, Carl Meyer, Collin Anderson, and Tim Graham for the reviews.
* Removed numbering from the models.py header of some test ↵Loic Bistuer2014-09-241-1/+1
| | | | | | packages. This is a reliqua from the early days of the modeltests/regressiontests era.
* Fixed mistake in tests from commit 2039908. Refs #19816.Loic Bistuer2014-03-301-2/+2
|
* Fixed #19816 -- Pre-evaluate querysets used in direct ↵Loic Bistuer2014-03-301-0/+24
| | | | | | | | | | | | relation assignments. Since assignments on M2M or reverse FK descriptors is composed of a `clear()`, followed by an `add()`, `clear()` could potentially affect the value of the assigned queryset before the `add()` step; pre-evaluating it solves the problem. This patch fixes the issue for ForeignRelatedObjectsDescriptor, ManyRelatedObjectsDescriptor, and ReverseGenericRelatedObjectsDescriptor. It completes 6cb6e1 which addressed ReverseManyRelatedObjectsDescriptor.
* Fixed transaction handling for a number of operations on ↵Loic Bistuer2014-03-301-1/+4
| | | | | | related objects. Thanks Anssi and Aymeric for the reviews. Refs #21174.
* PEP8 cleanupJason Myers2013-11-031-0/+1
| | | | Signed-off-by: Jason Myers <jason@jasonamyers.com>
* Fix all violators of E231Alex Gaynor2013-10-261-6/+6
|
* Removed unused local variables in tests.Tim Graham2013-10-191-2/+2
|
* 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.
* Fixed #20207 -- Handle ManyToManyField with a unicode ↵Simon Charette2013-04-051-1/+4
| | | | name correctly.
* Merged regressiontests and modeltests into the test root.Florian Apolloner2013-02-263-0/+423