#24615: ordering queryset by distance is broken
---------------------------------+------------------------------------
     Reporter:  MattBlack85      |                    Owner:  nobody
         Type:  Bug              |                   Status:  new
    Component:  GIS              |                  Version:  1.8
     Severity:  Release blocker  |               Resolution:
     Keywords:                   |             Triage Stage:  Accepted
    Has patch:  0                |      Needs documentation:  0
  Needs tests:  0                |  Patch needs improvement:  0
Easy pickings:  0                |                    UI/UX:  0
---------------------------------+------------------------------------

Comment (by claudep):

 Also note if we simply add a `rel = None` attribute to geometry
 `BaseField`, the same `find_ordering_name` method fails a bit later with:
 {{{
   File "/home/claude/virtualenvs/djangogit/local/lib/python2.7/site-
 packages/django/db/models/sql/compiler.py", line 261, in get_order_by
     default_order=asc))
   File "/home/claude/virtualenvs/djangogit/local/lib/python2.7/site-
 packages/django/db/models/sql/compiler.py", line 540, in
 find_ordering_name
     return [(t.get_col(alias), order, False) for t in targets]
 AttributeError: 'RawSQL' object has no attribute 'get_col'
 }}}

--
Ticket URL: <https://code.djangoproject.com/ticket/24615#comment:5>
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/069.db485b59a6f19d28a53ee436ca3569fa%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to