summaryrefslogtreecommitdiff
path: root/tests/model_inheritance
AgeCommit message (Collapse)Author
2013-08-15[1.6.x] Fixed #20895 -- Made check management command warn if a BooleanField ↵Alasdair Nicol
does not have a default value Thanks to Collin Anderson for the suggestion and Tim Graham for reviewing the patch. Backport of 22c6497f99 from master
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