Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#5351 closed (fixed)

[gis] orderfield2column referenced but not imported in query.py

Reported by: anonymous Owned by: nobody
Component: GIS Version: other branch
Severity: Keywords: gis, query, orderfield2column, db
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

In file django/branches/gis/django/contrib/gis/db/models/query.py from Rev 6026

orderfield2column is used but not imported.

Line 127: order_by.append('%s%s %s' % (table_prefix, qn(orderfield2column(col_name, opts)), order))


Solution:

-Line 4: from django.db.models.query import Q, QuerySet, handle_legacy_orderlist, quote_only_if_word
+Line 4: from django.db.models.query import Q, QuerySet, handle_legacy_orderlist, quote_only_if_word, orderfield2column

Change History (3)

comment:1 Changed 9 years ago by anonymous

Keywords: gis query added; quey removed
Needs documentation: unset
Needs tests: unset
Owner: changed from Jeremy Dunck to jbronn
Patch needs improvement: unset
Version: SVNother branch

comment:2 Changed 9 years ago by jbronn

Resolution: fixed
Status: newclosed

Fixed in r6111. Thanks anonymous!

comment:3 Changed 9 years ago by anonymous

You are welcome!
:)

Note: See TracTickets for help on using tickets.
Back to Top