Changes between Initial Version and Version 1 of Ticket #25339


Ignore:
Timestamp:
Sep 2, 2015, 5:14:31 AM (9 years ago)
Author:
Austin Pua
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #25339 – Description

    initial v1  
    99        select_fields['time_period'] = "date_trunc(%s, initial_timestamp::TIMESTAMP WITH TIME ZONE AT TIME ZONE %s)"
    1010    select_params = (frequency, settings.TIME_ZONE,)
    11     queryset = self.extra(select=select_fields, select_params=select_params).values('time_period', ....)
     11    queryset = self.extra(
     12        select=select_fields,
     13        select_params=select_params
     14    ).values('time_period', ....)
    1215    queryset = queryset.annotate(
    1316        # Add annotations
Back to Top