Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/many_to_one_null
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #25550 -- Deprecated direct assignment to the ↵Tim Graham2015-10-271-4/+4
| | | | reverse side of a related set.
* Renamed descriptor classes for related objects.Aymeric Augustin2015-09-211-1/+1
| | | | | | | | | | | | 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 #18556 -- Allowed RelatedManager.add() to execute ↵Tim Graham2015-07-281-0/+9
| | | | | | 1 query where possible. Thanks Loic Bistuer for review.
* Fixed #21127 -- Started deprecation toward requiring ↵Flavio Curella2015-07-281-2/+2
| | | | on_delete for ForeignKey/OneToOneField
* Fixed #6707 -- Added RelatedManager.set() and made ↵Loic Bistuer2015-02-051-1/+18
| | | | | | 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.
* Consolidated some many_to_one tests.Loic Bistuer2014-09-232-1/+16
|
* Fixed mistake in tests from commit 2039908. Refs #19816.Loic Bistuer2014-03-301-1/+1
|
* Fixed #19816 -- Pre-evaluate querysets used in direct ↵Loic Bistuer2014-03-301-0/+12
| | | | | | | | | | | | 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.
* PEP8 cleanupJason Myers2013-11-031-0/+1
| | | | Signed-off-by: Jason Myers <jason@jasonamyers.com>
* 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-263-0/+123