Changes between Initial Version and Version 5 of Ticket #7302


Ignore:
Timestamp:
07/07/2008 05:58:14 PM (7 years ago)
Author:
ramiro
Comment:

Seems to be a valid bug regarding the 0.96 backwards compatible, abstraction-leaking syntax for specifying ordering by a related model's field (namely, using <name of the related model table>.<field name>. Since queryset-refactor (that the OP seems to be running as he is using r7548) was merged, it is also possible (recommended?) to use 'relatedmodel__fieldname'. See http://www.djangoproject.com/documentation/db-api/#order-by-fields

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7302

    • Property Status changed from new to reopened
    • Property Patch needs improvement unset
    • Property Needs tests unset
    • Property Needs documentation unset
    • Property Triage Stage changed from Unreviewed to Accepted
  • Ticket #7302 – Description

    initial v5  
    11
    22Lately, I got this error
    3 
     3{{{
    44Environment:
    55
     
    4949Exception Type: OperationalError at /pages/
    5050Exception Value: near "order": syntax error
    51 
     51}}}
    5252
    5353I think this kind of sql syntax error is caused in the django framework.
Back to Top