Changes between Initial Version and Version 5 of Ticket #7302


Ignore:
Timestamp:
Jul 7, 2008, 5:58:14 PM (16 years ago)
Author:
Ramiro Morales
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 newreopened
    • Property Triage Stage UnreviewedAccepted
  • 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