Changes between Initial Version and Version 1 of Ticket #31426, comment 1


Ignore:
Timestamp:
04/04/20 22:43:38 (3 years ago)
Author:
Simon Charette
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31426, comment 1

    initial v1  
    11`ORDER_PATTERN` is a long standing hack that was added more than 12 years ago during the first iteration of the ORM and augmented later on to address #7098.
    22
    3 It should be replaced by proper field reference validation but could you go into more details about you triggered this error? How did you manage to annotate a field containing an hyphen and pass it along to `order_by`. Just to make it clear, `order_by(str(uuid.uuid4())` is effectively not allowed.
     3It should be replaced by proper field reference validation but could you go into more details about you triggered this error? How did you manage to annotate a field containing an hyphen and pass it along to `order_by`.
     4
     5Just to make it clear, `order_by(str(uuid.uuid4())` is effectively not allowed and annotation using uuid as name should also not be supported
     6
     7{{{#!python
     8.annotate(**{str(uuid.uuid4()): expression})
     9}}}
     10
     11is not supported and if you want to order by a programmatically added alias without risking field collision you should pass `expression` directly to `.order_by()`.
Back to Top