forked from DGNum/gestioCOF
core -- Fix flake8 errors
This commit is contained in:
parent
fdd2b35289
commit
402b544393
13 changed files with 16 additions and 23 deletions
|
@ -6,7 +6,7 @@ class GestioncofConfig(AppConfig):
|
|||
verbose_name = "Gestion des adhérents du COF"
|
||||
|
||||
def ready(self):
|
||||
from . import signals
|
||||
from . import signals # noqa
|
||||
|
||||
self.register_config()
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ def is_cof(user):
|
|||
try:
|
||||
profile = user.profile
|
||||
return profile.is_cof
|
||||
except:
|
||||
except Exception:
|
||||
return False
|
||||
|
||||
|
||||
|
@ -16,7 +16,7 @@ def is_buro(user):
|
|||
try:
|
||||
profile = user.profile
|
||||
return profile.is_buro
|
||||
except:
|
||||
except Exception:
|
||||
return False
|
||||
|
||||
|
||||
|
|
|
@ -2,8 +2,6 @@ from django.conf import settings
|
|||
from django.contrib.sites.models import Site
|
||||
from django_cas_ng.backends import CASBackend
|
||||
|
||||
from gestioncof.models import CofProfile
|
||||
|
||||
|
||||
class COFCASBackend(CASBackend):
|
||||
def clean_username(self, username):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue