News for hackers. Stuff that matters.
Re:Python is not a great programming language by rsinger87 on Saturday October 12, 2019 @06:36PM (#21236849)
I wrote this package to provide model lifecycle hooks (similar to Rails callbacks) because I didn't like the frequency that my codebase was overriding __init__(): https://github.com/rsinger86/django-lifecycle

Django's ecosystem (mainly DRF and django-filters) makes it very productive for me, but I find Django core to be lacking for developer ergonomics in certain areas.

Re:Python is not a great programming language by ben509 on Saturday October 12, 2019 @06:48PM (#21236901)
That's exactly what I was imagining. You can tell it's a nicely designed base class because the dunders are all tucked away so the only thing left is actual logic.