#11671: Aggregations add extra values to ValuesQuerySets :: another usecase
-------------------------------------+-------------------------------
Reporter: richard@… | Owner:
Type: Bug | Status: new
Milestone: | Component: ORM aggregation
Version: SVN | Severity: Normal
Resolution: | Keywords:
Triage Stage: Accepted | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 |
-------------------------------------+-------------------------------
Changes (by anonymous):
* version: 1.1 => SVN
Comment:
Patching this would be very helpfull as, this feature would be usefull in
clustering (geodjango)
{{{
e.objects.extra(select={'cluster':'substring(mortons_code for
10)'}).annotate(objects_in_cluster=Count('cluster')).order_by('objects_in_cluster')
}}}
same error:
{{{
FieldError: Cannot resolve keyword 'cluster' into field. Choices are:
}}}
.....
--
Ticket URL: <http://code.djangoproject.com/ticket/11671#comment:6>
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.