From a132fe2956fff4addd473e3aeead696e5ff832d6 Mon Sep 17 00:00:00 2001 From: Jonas Braathen <jonas.braathen@usit.uio.no> Date: Tue, 12 Oct 2021 13:59:42 +0200 Subject: [PATCH] Fix a few lint warnings --- greg/api/filters.py | 2 +- greg/managers.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/greg/api/filters.py b/greg/api/filters.py index 9a5d938d..ef45de2a 100644 --- a/greg/api/filters.py +++ b/greg/api/filters.py @@ -33,7 +33,7 @@ class PersonFilter(FilterSet): def verified_filter(self, queryset, name, value): if value is True: return queryset.with_verified_identities() - elif value is False: + if value is False: return queryset.without_verified_identities() return queryset diff --git a/greg/managers.py b/greg/managers.py index c62a855f..30848d3a 100644 --- a/greg/managers.py +++ b/greg/managers.py @@ -1,5 +1,4 @@ -from django.db.models import Count, Manager, Q, QuerySet -from django.utils import timezone +from django.db.models import Count, Manager, QuerySet class PersonQuerySet(QuerySet): -- GitLab