So, validating and saving models instances in #Django. Shouldn't we just call Model.full_clean()
from Model.save()
as a default, and make it possible to skip with a skip_clean
argument? Am I missing something? It feels like a big win and avoids the footgun aspect of forgetting to run full_clean
.
=> More informations about this toot | More toots from valberg@social.data.coop
@valberg What about when you're using a queryset.only('field_a')
, then call instance.save('update_fields=['field_a'])
?
=> More informations about this toot | More toots from CodenameTim@fosstodon.org
@CodenameTim I guess that would have the same effect as providing skip_clean
.
=> More informations about this toot | More toots from valberg@social.data.coop This content has been proxied by September (ba2dc).Proxy Information
text/gemini