Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/generic_relations_regress/models.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #21127 -- Started deprecation toward requiring ↵Flavio Curella2015-07-281-11/+11
| | | | on_delete for ForeignKey/OneToOneField
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-3/+2
|
* Fixed #22998 -- Updated the fast_delete logic for GFKsGavin Wahl2014-07-161-0/+24
|
* 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 #21428 -- editable GenericRelation regressionAnssi Kääriäinen2013-11-161-1/+11
| | | | | | | | | | | | 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.
* PEP8 cleanupJason Myers2013-11-031-0/+25
| | | | Signed-off-by: Jason Myers <jason@jasonamyers.com>
* Fixed #20564 -- Generic relations exclude() regressionAnssi Kääriäinen2013-06-061-0/+24
| | | | | | | | | 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.
* Fixed #20378 -- regression in GenericRelation on ↵Anssi Kääriäinen2013-05-201-0/+9
| | | | | | | | | | | 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-261-0/+124