Opened 17 years ago

Closed 17 years ago

Last modified 17 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: no UI/UX: no

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 by anonymous, 17 years ago

Keywords: gis query added; quey removed
Owner: changed from Jeremy Dunck to jbronn
Version: SVNother branch

comment:2 by jbronn, 17 years ago

Resolution: fixed
Status: newclosed

Fixed in r6111. Thanks anonymous!

comment:3 by anonymous, 17 years ago

You are welcome!
:)

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