Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/model_inheritance
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #25550 -- Deprecated direct assignment to the ↵Tim Graham2015-10-271-2/+2
| | | | reverse side of a related set.
* Fixed #21127 -- Started deprecation toward requiring ↵Flavio Curella2015-07-281-5/+5
| | | | on_delete for ForeignKey/OneToOneField
* Sorted imports with isort; refs #23860.Tim Graham2015-02-063-5/+7
|
* Fixed #15321 -- Honored ancestors unique checks.Aron Podrigal2015-02-042-2/+53
| | | | Thanks to Tim for the review.
* Removed support for syncing apps without migrations per ↵Tim Graham2015-01-181-1/+1
| | | | | | | deprecation timeline. Kept support for creating models without migrations when running tests (especially for Django's test suite).
* Refs #18586 -- Split up ↵Alexander Shchapov2014-12-041-133/+135
| | | | model_inheritance.ModelInheritanceTest
* Fixed #20392 -- Added TestCase.setUpTestData()Thomas Chaumeny2014-12-031-7/+14
| | | | Each TestCase is also now wrapped in a class-wide transaction.
* Fixed typos using https://github.com/vlajos/misspell_fixerVeres Lajos2014-11-041-1/+1
|
* Fixed #23370 -- defer() + select_related() crashed with ↵Akis Kesoglou2014-08-301-0/+37
| | | | inherited models.
* Fixed several typos in DjangoAlex Gaynor2014-05-291-1/+1
|
* Appeased flake8 2.1.0.Aymeric Augustin2014-04-211-1/+1
|
* Fixed #22402 -- Consolidated model_inheritance tests.Aymeric Augustin2014-04-213-2/+59
| | | | | | | The model_inheritance_same_model_name tests couldn't be run without the model_inheritance tests. Make the problem go away by merging them. Thanks timo for the report.
* Fixed #17673 -- Forbid field shadowing.Christopher Medrela2014-02-102-37/+1
| | | | Thanks Anssi Kääriäinen for the suggestion.
* PEP8Jason Myers2013-11-031-0/+22
| | | | Signed-off-by: Jason Myers <jason@jasonamyers.com>
* Fixed #20946 -- model inheritance + m2m failureAnssi Kääriäinen2013-08-212-1/+21
| | | | | | | Cleaned up the internal implementation of m2m fields by removing related.py _get_fk_val(). The _get_fk_val() was doing the wrong thing if asked for the foreign key value on foreign key to parent model's primary key when child model had different primary key field.
* PEP 8 cleanupAnssi Kääriäinen2013-08-191-26/+36
|
* Fixed #12567 -- Incorrect SQL in model inheritance caseAnssi Kääriäinen2013-08-191-0/+24
| | | | | An isnull lookup produced incorrect SQL. This was already fixed earlier, so only tests added.
* Made Model.__eq__ consider proxy models equivalentAnssi Kääriäinen2013-08-191-0/+5
| | | | Fixed #11892, fixed #16458, fixed #14492.
* Fixed #20895 -- Made check management command warn if a ↵Alasdair Nicol2013-08-161-4/+4
| | | | | | | BooleanField does not have a default value Thanks to Collin Anderson for the suggestion and Tim Graham for reviewing the patch.
* 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 #16649 -- Refactored save_base logicAnssi Kääriäinen2013-03-141-1/+1
| | | | | | | | | | | | | | | | | | | Model.save() will use UPDATE - if not updated - INSERT instead of SELECT - if found UPDATE else INSERT. This should save a query when updating, but will cost a little when inserting model with PK set. Also fixed #17341 -- made sure .save() commits transactions only after the whole model has been saved. This wasn't the case in model inheritance situations. The save_base implementation was refactored into multiple methods. A typical chain for inherited save is: save_base() _save_parents(self) for each parent: _save_parents(parent) _save_table(parent) _save_table(self)
* Import `CaptureQueriesContext` from its original module.Simon Charette2013-03-021-1/+1
|
* Fixed #10399 -- Tested that o2o field updates are not ↵Simon Charette2013-03-021-1/+25
| | | | constrained by an inner query.
* Merged regressiontests and modeltests into the test root.Florian Apolloner2013-02-263-0/+460