Corrected links to only()/defer() in Model documentation

Refs #18306
This commit is contained in:
Anssi Kääriäinen 2012-09-30 02:43:47 +03:00
parent 10e505b1b3
commit dad7eec6e1
1 changed files with 5 additions and 4 deletions

View File

@ -387,10 +387,11 @@ perform an update on all fields.
Specifying ``update_fields`` will force an update. Specifying ``update_fields`` will force an update.
When saving a model fetched through deferred model loading When saving a model fetched through deferred model loading
(:meth:`~Model.only()` or :meth:`~Model.defer()`) only the fields loaded from (:meth:`~django.db.models.query.QuerySet.only()` or
the DB will get updated. In effect there is an automatic ``update_fields`` in :meth:`~django.db.models.query.QuerySet.defer()`) only the fields loaded
this case. If you assign or change any deferred field value, these fields will from the DB will get updated. In effect there is an automatic
be added to the updated fields. ``update_fields`` in this case. If you assign or change any deferred field
value, the field will be added to the updated fields.
Deleting objects Deleting objects
================ ================