Opened 8 years ago

Closed 8 years ago

Last modified 8 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 8 years ago by anonymous

  • Keywords gis query added; quey removed
  • Needs documentation unset
  • Needs tests unset
  • Owner changed from jdunck to jbronn
  • Patch needs improvement unset
  • Version changed from SVN to other branch

comment:2 Changed 8 years ago by jbronn

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in r6111. Thanks anonymous!

comment:3 Changed 8 years ago by anonymous

You are welcome!
:)

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