mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #901 -- Added Model.refresh_from_db() method
Thanks to github aliases dbrgn, carljm, slurms, dfunckt, and timgraham for reviews.
This commit is contained in:
committed by
Tim Graham
parent
912ad03226
commit
c7175fcdfe
@@ -391,6 +391,12 @@ Models
|
||||
by the database, which can lead to somewhat complex queries involving nested
|
||||
``REPLACE`` function calls.
|
||||
|
||||
* You can now refresh model instances by using :meth:`Model.refresh_from_db()
|
||||
<django.db.models.Model.refresh_from_db>`.
|
||||
|
||||
* You can now get the set of deferred fields for a model using
|
||||
:meth:`Model.get_deferred_fields() <django.db.models.Model.get_deferred_fields>`.
|
||||
|
||||
Signals
|
||||
^^^^^^^
|
||||
|
||||
|
||||
Reference in New Issue
Block a user