Hi Matt,
sorry for the late reply. This is exactly what I was looking for!
However, if I understand correctly this is more a proof of concept and
not ready for production use. There still seem to be some subtlties that
need to be fixed:
- related queries with shared_property
- filtered aggre
Hi Tobias.
I've done a bit of stuff on this, and found there were actually limited
changes that need to be made to django to got this to work.
https://schinckel.net/2020/09/15/django-properties-from-expressions%2C-or-computedfield-part-2/
I haven't touched it much since then (although I'm keen
Hi,
a while back there has been a discussion about calculated model fields:
https://groups.google.com/g/django-developers/c/ADSuUUuZp3Q/m/5o02Lp_jCwAJ
The main benefit would be that these would be available in cases where
annotations are currently not available, e.g. related queries or admin