Commit 5627330d authored by okhin's avatar okhin 🚴

QuerySet has no .objects #22

parent 066d1d85
......@@ -233,7 +233,7 @@ class ViolationsList(ListView):
queryset = queryset.filter(activationid='',
operator_ref__name=self.kwargs['country'])
if 'all' not in self.request.GET:
queryset = queryset.objects.filter(activationid='').exclude(state__in=['duplicate', 'closed'])
queryset = queryset.filter(activationid='').exclude(state__in=['duplicate', 'closed'])
return queryset
def get_context_data(self, **kwargs):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment