<p>You can pass a <code>update_fields</code> param to the model <code>save</code> method. One interesting use for this is to avoid updating dates in time stamped models.</p>
<p><code>product.name = 'Name changed again'
product.save(update_fields=['name'])</code></p>
<p><a href="#specifying-which-fields-to-save">#specifying-which-fields-to-save</a></p>
By clicking “Accept cookies”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage and assist in our marketing efforts. Check our privacy policies.
By clicking “Accept all”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage and assist in our marketing efforts. Check our privacy policies.