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 YES PLEASE AND THANK YOU https://github.com/bornhack/bornhack-website/blob/master/src/utils/models.py#L37-L58
=> More informations about this toot | More toots from tykling@mastodon.social
text/gemini
This content has been proxied by September (ba2dc).