News for hackers. Stuff that matters.
Re:Django 5.0 Is Released by radus on Monday December 04, 2023 @01:32PM (#38521072)
It's easier to re-use if you need the same generated field in multiple places.
Re:Django 5.0 Is Released by cdcarter on Monday December 04, 2023 @02:06PM (#38521589)
I've been in the habit of replacing the default manager for my model with one with an annotated query set. that way, any Model.objects.all() call will have the computed fields.

I find this pretty easy to get used to and re-use. though I do admit I like them defined as actual model-fields with verbose names etc...