<p>On Django, be careful when doing consecutive <code>queryset.update()</code>s. Each one executes a new <code>UPDATE ... WHERE</code> SQL query. There are cases where the second update might not change anything because the first one changed the rows already. Always check the original <code>queryset</code> filters/excludes to see if they are affected by the updates.</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.