Esempio n. 1
0
    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
Esempio n. 2
0
    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
Esempio n. 3
0
File: views.py Progetto: g-k/standup
    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