I haven't had chance to dig into this, but django-shared-property looks very interesting. IMO it would be great to be able to support it well, or even include that kind of functionality in Django itself.
The closest SQLAlchemy equivalent to this seems to be hybrid attributes - a feature I'm very jealous of. In almost every Django project I've come across the need for computed properties that should be available both at DB level (filtering/searching) and at instance level, and it is a constant source of duplication of logic.
Relating to your actual post, and without thinking it through,
I'm guessing the conceptual order of SQL evaluation is relevant
here - e.g.
https://stackoverflow.com/questions/21693208/sql-conceptual-order-evaluation
Luke
--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-develop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/9F101363-110C-498A-8C6C-554138F8D673%40schinckel.net.