Changes between Initial Version and Version 1 of Ticket #27719, comment 5


Ignore:
Timestamp:
01/12/2017 06:20:28 AM (5 years ago)
Author:
Josh Smeaton
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #27719, comment 5

    initial v1  
    55Let's look at your list of example usages of aliases:
    66
     7{{{
    78.filter(name__lookup=value) - Yes, Yes, Yes. But solved by expressions-in-filters.
    89.order_by('name') - Already supports expressions
     
    1213.date() (and datetimes) - unsure about this, fairly uncommon?
    1314.defer('name') (and only) - it's already in the select list
     15}}}
    1416
    1517Out of all of the above, except for `filter` we always want the expression in the select list anyway. And when we use defer, we still want it in the annotations list so we can use it later (I think).
Back to Top