You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not (yet) a feature request, just a request for comments.
What about a new rule to check for .save() calls of Django models with no explicit update_fields keyword argument specified?
I think in general, it is a good idea to explicitly use update_fields when saving Django models.
Though there are probably also cases where it is not possible at all (e.g. you simply do not know which fields were updated when using one or more subclasses or mixins or so). Or maybe there are cases where you explicitly want to save all fields of the model.
So, do you think such a rule might be too ambitious or might it work in general and it's feasible to declare corner cases with the noqa tag?