Changes between Initial Version and Version 1 of Ticket #25339
- Timestamp:
- Sep 2, 2015, 5:14:31 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #25339 – Description
initial v1 9 9 select_fields['time_period'] = "date_trunc(%s, initial_timestamp::TIMESTAMP WITH TIME ZONE AT TIME ZONE %s)" 10 10 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', ....) 12 15 queryset = queryset.annotate( 13 16 # Add annotations