Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/generic_relations_regress
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #21127 -- Started deprecation toward requiring ↵Flavio Curella2015-07-281-11/+11
| | | | on_delete for ForeignKey/OneToOneField
* Refs #24267 -- Implemented lookups for related fieldsAnssi Kääriäinen2015-03-251-6/+10
| | | | | | | | | | Previously related fields didn't implement get_lookup, instead related fields were treated specially. This commit removed some of the special handling. In particular, related fields return Lookup instances now, too. Other notable changes in this commit is removal of support for annotations in names_to_path().
* Sorted imports with isort; refs #23860.Tim Graham2015-02-062-9/+7
|
* Fixed #12663 -- Formalized the Model._meta API for ↵Daniel Pyrathon2015-01-071-1/+1
| | | | | | | retrieving fields. Thanks to Russell Keith-Magee for mentoring this Google Summer of Code 2014 project and everyone else who helped with the patch!
* Fixed #24002 -- GenericRelation filtering targets ↵Anssi Kääriäinen2014-12-171-2/+14
| | | | | | | | | related model's pk Previously Publisher.objects.filter(book=val) would target book.object_id if book is a GenericRelation. This is inconsistent to filtering over reverse foreign key relations, where the target is the related model's primary key.
* Corrected test assertion from refs #21403.Tim Graham2014-12-151-1/+1
|
* Fixed #23620 -- Used more specific assertions in the ↵Berker Peksag2014-11-031-2/+2
| | | | Django test suite.
* Fixed #22982 -- Added ↵Jacob Haslehurst2014-08-071-0/+4
| | | | | | | | GenericRelatedObjectManager.__str__. to prevent crash. Thanks bendavis78 for the report. Forwardport of 29585e9b6a from stable/1.7.x
* PEP8 cleanupAnssi Kääriäinen2014-07-161-1/+1
|
* Fixed #22998 -- Updated the fast_delete logic for GFKsGavin Wahl2014-07-162-1/+38
|
* Fixed #22207 -- Added support for GenericRelation ↵Gabe Jackson2014-03-051-1/+1
| | | | | | | | | | | reverse lookups GenericRelation now supports an optional related_query_name argument. Setting related_query_name adds a relation from the related object back to the content type for filtering, ordering and other query operations. Thanks to Loic Bistuer for spotting a couple of important issues in his review.
* Fixed #19774 -- Deprecated the contenttypes.generic module.Simon Charette2014-01-261-16/+18
| | | | | | | It contained models, forms and admin objects causing undesirable import side effects. Refs #16368. Thanks to Ramiro, Carl and Loïc for the review.
* Fixed #21403: Corrected test codeShai Berger2013-11-251-3/+3
| | | | | | A test for annotations incorrectly assumed that the first instance (in the test) of a model using AutoField for PK will always get pk=1. The test was changed to compare against actual instance id instead.
* Fixed #21428 -- editable GenericRelation regressionAnssi Kääriäinen2013-11-162-1/+22
| | | | | | | | | | | | The GenericRelation refactoring removed GenericRelations from model._meta.many_to_many. This had the side effect of disallowing editable GenericRelations in ModelForms. Editable GenericRelations aren't officially supported, but if we don't fix this we don't offer any upgrade path for those who used the ability to set editable=True in GenericRelation subclass. Thanks to Trac alias joshcartme for the report and stephencmd and Loic for working on this issue.
* Fixed #10461 -- bug in generic relation + annotate() caseAnssi Kääriäinen2013-11-051-1/+24
| | | | | This issue was fixed when the contenttype restriction was moved from where clause to the join clause. So, this is tests only addition.
* PEP8 cleanupJason Myers2013-11-031-0/+25
| | | | Signed-off-by: Jason Myers <jason@jasonamyers.com>
* Fixed #21298 -- Fixed E301 pep8 warningsAlasdair Nicol2013-10-231-0/+1
|
* Fixed #20564 -- Generic relations exclude() regressionAnssi Kääriäinen2013-06-062-1/+81
| | | | | | | | | The patch for #19385 caused a regression in certain generic relations .exclude() filters if a subquery was needed. The fix contains a refactoring to how Query.split_exclude() and Query.trim_start() interact. Thanks to Trac alias nferrari for the report.
* PEP 8 cleanupAnssi Kääriäinen2013-06-051-12/+15
|
* Fixed #20378 -- regression in GenericRelation on ↵Anssi Kääriäinen2013-05-202-1/+28
| | | | | | | | | | | abstract model When a GenericRelation was defined on abstract model, queries on childs of the abstract model didn't work. The problem was in the way fields and in particular field.rel was copied from models to their children. The regression was likely caused by #19385. Thanks to Gavin Wahl for spotting the regression.
* Merged regressiontests and modeltests into the test root.Florian Apolloner2013-02-263-0/+261