Ancestors

Written by valberg on 2024-08-29 at 21:36

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

Toot

Written by Thomas Steen Rasmussen on 2024-08-30 at 05:17

@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

Descendants

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113049276559774392
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
252.649659 milliseconds
Gemini-to-HTML Time
0.360298 milliseconds

This content has been proxied by September (ba2dc).