Changes between Initial Version and Version 1 of Ticket #24570, comment 9


Ignore:
Timestamp:
Apr 2, 2015, 6:54:38 PM (9 years ago)
Author:
Josh Smeaton

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #24570, comment 9

    initial v1  
    99        'product_id', 'created_at', 'max_date'
    1010    )
    11     qs.query.group_by = ['product_id', truncate_date]  # this is private API, but you'd need to use the alias
    12                                                                                             # name of the extra clause ("created_at"), which is ambiguous because
    13                                                                                             # you've used the same name. group_by=['product_id', 'created_extra']
     11   
     12    # this is private API, but you'd need to use the alias name of the extra clause ("created_at"),
     13    # which is ambiguous because you've used the same name. group_by=['product_id', 'created_extra']
     14    qs.query.group_by = ['product_id', truncate_date]   
    1415    qs.order_by('-max_date')[:10]
    1516
Back to Top