mirror of
https://github.com/django/django.git
synced 2024-12-24 10:05:46 +00:00
6b4834952d
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) |
||
---|---|---|
.. | ||
0.95.txt | ||
0.96.txt | ||
1.0-alpha-1.txt | ||
1.0-alpha-2.txt | ||
1.0-beta-2.txt | ||
1.0-beta.txt | ||
1.0-porting-guide.txt | ||
1.0.1.txt | ||
1.0.2.txt | ||
1.0.txt | ||
1.1-alpha-1.txt | ||
1.1-beta-1.txt | ||
1.1-rc-1.txt | ||
1.1.2.txt | ||
1.1.3.txt | ||
1.1.4.txt | ||
1.1.txt | ||
1.2-alpha-1.txt | ||
1.2-beta-1.txt | ||
1.2-rc-1.txt | ||
1.2.1.txt | ||
1.2.2.txt | ||
1.2.3.txt | ||
1.2.4.txt | ||
1.2.5.txt | ||
1.2.6.txt | ||
1.2.7.txt | ||
1.2.txt | ||
1.3-alpha-1.txt | ||
1.3-beta-1.txt | ||
1.3.1.txt | ||
1.3.2.txt | ||
1.3.txt | ||
1.4-alpha-1.txt | ||
1.4-beta-1.txt | ||
1.4.1.txt | ||
1.4.2.txt | ||
1.4.txt | ||
1.5-alpha-1.txt | ||
1.5-beta-1.txt | ||
1.5.txt | ||
1.6.txt | ||
index.txt |