0
0
mirror of https://github.com/django/django.git synced 2024-11-29 22:56:46 +01:00
django/docs/ref
Anssi Kääriäinen 6b4834952d Fixed #16649 -- Refactored save_base logic
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-14 11:01:47 +02:00
..
class-based-views Fixed #17094 - Typo in class-based views doc. 2013-02-23 08:52:33 -05:00
contrib Deprecated django.contrib.comments. 2013-03-11 15:38:40 -05:00
files Fixed typo in file storage docs. 2013-01-13 19:36:49 +01:00
forms Fixed #19801 - Added brackets to input_formats. 2013-02-25 12:22:02 -05:00
models Fixed #16649 -- Refactored save_base logic 2013-03-14 11:01:47 +02:00
templates Fixed #17906 - Autoescaping {% cycle %} and {% firstof %} templatetags. 2013-02-23 16:16:39 +01:00
clickjacking.txt Simplified default project template. 2013-02-04 13:21:36 +01:00
databases.txt Added support for savepoints in SQLite. 2013-03-11 14:48:55 +01:00
django-admin.txt Fixed #19923 -- Display tracebacks for non-CommandError exceptions 2013-03-09 12:38:45 +01:00
exceptions.txt Refactored database exceptions wrapping. 2013-02-27 17:26:54 +01:00
index.txt
middleware.txt Deprecated TransactionMiddleware and TRANSACTIONS_MANAGED. 2013-03-11 15:04:05 +01:00
request-response.txt Enabled database-level autocommit for all backends. 2013-03-11 14:48:54 +01:00
settings.txt Deprecated TransactionMiddleware and TRANSACTIONS_MANAGED. 2013-03-11 15:04:05 +01:00
signals.txt Added documentation for the 'db' argument of the post-syncdb signal. 2013-01-03 22:04:55 +01:00
template-response.txt Fixed #19692 -- Completed deprecation of mimetype in favor of content_type. 2013-01-31 13:54:40 +01:00
unicode.txt Updated a couple admonitions to use the warning directive. 2013-02-19 11:31:41 -05:00
urlresolvers.txt Removed versionadded/changed annotations dating back to 1.4. 2012-12-29 21:59:08 +01:00
urls.txt Fixed #19516 - Fixed remaining broken links. 2013-01-02 18:32:57 -05:00
utils.txt Fixed #19577 - Added HTML escaping to admin examples. 2013-01-25 06:53:40 -05:00
validators.txt Fixed #4833 -- Validate email addresses with localhost as domain 2013-01-11 20:45:46 +01:00