Commit 5627330d authored by Okhin's avatar Okhin
Browse files

QuerySet has no .objects #22

parent 066d1d85
......@@ -233,7 +233,7 @@ class ViolationsList(ListView):
queryset = queryset.filter(activationid='',
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):
Supports Markdown
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