From f5f6d0a0fd2988061621c47ad947150eb451ac24 Mon Sep 17 00:00:00 2001 From: Vasilis Tsiligiannis Date: Tue, 24 Sep 2019 20:33:59 +0300 Subject: [PATCH] pylint: Return 'None' when end of function is reached Signed-off-by: Vasilis Tsiligiannis --- .pylintrc | 1 - .pylintrc3 | 1 - network/users/admin.py | 1 + 3 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.pylintrc b/.pylintrc index 023f651..b75e589 100644 --- a/.pylintrc +++ b/.pylintrc @@ -19,7 +19,6 @@ disable= R0913, R0914, R0915, - R1710, W0201, W0221, W0223, diff --git a/.pylintrc3 b/.pylintrc3 index 5fc02f1..360dbbc 100644 --- a/.pylintrc3 +++ b/.pylintrc3 @@ -19,7 +19,6 @@ disable= R0913, R0914, R0915, - R1710, W0201, W0221, W0223, diff --git a/network/users/admin.py b/network/users/admin.py index 7df1d5b..5ef2c8f 100644 --- a/network/users/admin.py +++ b/network/users/admin.py @@ -21,6 +21,7 @@ class HasStationListFilter(admin.SimpleListFilter): return queryset.annotate(count=Count('ground_stations')).filter(count__gt=0) if self.value() == '0': return queryset.annotate(count=Count('ground_stations')).filter(count__lt=1) + return None class UserAdmin(AuthUserAdmin):