def get_status_queryset(self): qs = Status.objects.filter(reply_to=None) start = startdate(self.request) if start: end = enddate(self.request) if not end: end = start qs = qs.filter(created__range=(start, end)) return qs
def get_status_queryset(self): qs = Status.objects.select_related('project', 'user') start = startdate(self.request) if start: end = enddate(self.request) if not end: end = start qs = qs.filter(created__range=(start, end)) return qs