#13363: extra fields of Model.objects.extra() can't be filtered
--------------------------------------+-------------------------------------
Reporter: fetzig | Owner:
Status: reopened | Milestone:
Component: ORM aggregation | Version: SVN
Resolution: | Keywords: queryset extra filter
Stage: Unreviewed | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
--------------------------------------+-------------------------------------
Changes (by ris):
* status: closed => reopened
* resolution: wontfix =>
Comment:
Sorry I know it's impolite to reopen tickets like this.
I too would find this a very useful feature.
I realize _similar_ functionality is possible using the where= clause, but
allowing the selected parameter to be filtered against would mean you
could re-use the same calculated parameter (multiple times) from within
complex Q() statements.
e.g. - currently in my app I am dynamically building a really very complex
query using Q statements. Having to fall back to the QuerySet to perform
the extra() from within this code would be quite painful and screw up my
encapsulation.
--
Ticket URL: <http://code.djangoproject.com/ticket/13363#comment:2>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.