def __init__(self, tally_id): super(IntakenProgressReport, self).__init__(tally_id) pks = ResultForm.distinct_form_pks(self.tally_id) self.filtered_queryset = ResultForm.objects.filter(id__in=pks).exclude( form_state=FormState.UNSUBMITTED)
def __init__(self, tally_id): super(IntakenProgressReport, self).__init__(tally_id) pks = ResultForm.distinct_form_pks(self.tally_id) self.filtered_queryset = ResultForm.objects.filter( id__in=pks).exclude(form_state=FormState.UNSUBMITTED)
class IntakenProgressReport(ProgressReport): pks = ResultForm.distinct_form_pks() filtered_queryset = ResultForm.objects.filter(id__in=pks).exclude( form_state=FormState.UNSUBMITTED) label = _(u"Intaken")