#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 , 18 years ago
| Keywords: | gis query added; quey removed |
|---|---|
| Owner: | changed from to |
| Version: | SVN → other branch |
comment:2 by , 18 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Fixed in r6111. Thanks anonymous!