Changes between Initial Version and Version 1 of Ticket #27719, comment 5
- Timestamp:
- Jan 12, 2017, 6:20:28 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #27719, comment 5
initial v1 5 5 Let's look at your list of example usages of aliases: 6 6 7 {{{ 7 8 .filter(name__lookup=value) - Yes, Yes, Yes. But solved by expressions-in-filters. 8 9 .order_by('name') - Already supports expressions … … 12 13 .date() (and datetimes) - unsure about this, fairly uncommon? 13 14 .defer('name') (and only) - it's already in the select list 15 }}} 14 16 15 17 Out 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).