summaryrefslogtreecommitdiff
path: root/tests/model_inheritance
AgeCommit message (Collapse)Author
2014-08-30[1.7.x] Fixed #23370 -- defer() + select_related() crashed with inherited ↵Akis Kesoglou
models. Backport of 6613ea6e3f from master
2014-05-29[1.7.x] Fixed several typos in DjangoAlex Gaynor
Backport of 1dcc603eff from master
2014-04-21[1.7.x] Appeased flake8 2.1.0.Aymeric Augustin
Backport of 428c0bbe1bcd303560d7e96d7d2721ff3fdc0e3f from master
2014-04-21[1.7.x] Fixed #22402 -- Consolidated model_inheritance tests.Aymeric Augustin
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. Backport of 0097d38 from master
2014-02-10Fixed #17673 -- Forbid field shadowing.Christopher Medrela
Thanks Anssi Kääriäinen for the suggestion.
2013-11-02PEP8Jason Myers
Signed-off-by: Jason Myers <jason@jasonamyers.com>
2013-08-21Fixed #20946 -- model inheritance + m2m failureAnssi Kääriäinen
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.
2013-08-19PEP 8 cleanupAnssi Kääriäinen
2013-08-19Fixed #12567 -- Incorrect SQL in model inheritance caseAnssi Kääriäinen
An isnull lookup produced incorrect SQL. This was already fixed earlier, so only tests added.
2013-08-19Made Model.__eq__ consider proxy models equivalentAnssi Kääriäinen
Fixed #11892, fixed #16458, fixed #14492.
2013-08-15Fixed #20895 -- Made check management command warn if a BooleanField does ↵Alasdair Nicol
not have a default value Thanks to Collin Anderson for the suggestion and Tim Graham for reviewing the patch.
2013-07-29Removed most of absolute_import importsClaude Paroz
Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way.
2013-03-14Fixed #16649 -- Refactored save_base logicAnssi Kääriäinen
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)
2013-03-02Import `CaptureQueriesContext` from its original module.Simon Charette
2013-03-02Fixed #10399 -- Tested that o2o field updates are not constrained by an ↵Simon Charette
inner query.
2013-02-26Merged regressiontests and modeltests into the test root.Florian Apolloner