#15101: GeoQuerySet extent() method fails to limit
----------------------------+------------------------------------
     Reporter:  billtown@…  |                    Owner:  nobody
         Type:  Bug         |                   Status:  new
    Component:  GIS         |                  Version:  1.2
     Severity:  Normal      |               Resolution:
     Keywords:  extent()    |             Triage Stage:  Accepted
    Has patch:  0           |      Needs documentation:  0
  Needs tests:  0           |  Patch needs improvement:  0
Easy pickings:  0           |                    UI/UX:  0
----------------------------+------------------------------------

Comment (by reinout):

 As you say, it isn' just an extent() problem, but also sum() and count().

 Turns out, there is a ticket for the generic case of aggregates not
 working with limits: #12886

 It is fixed in
 
https://github.com/django/django/commit/7737305a4f5dc5006d92dac3a61523ad6c2a523a,
 you'll see some "force_subquery" lines in there, which matches your
 comment of "In future versions if a subselect were used..."

 Extra note: the fix is in 1.7 and higher.

--
Ticket URL: <https://code.djangoproject.com/ticket/15101#comment:6>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/076.62ed4da3c317753c0336b5a37ee4df0a%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to