Remove lambda operators

This commit is contained in:
Ludovic Stephan 2017-03-20 20:24:44 -03:00
parent 2c63e6b667
commit 5e802217fd
2 changed files with 3 additions and 3 deletions

View file

@ -10,7 +10,7 @@ def is_cof(user):
except:
return False
cof_required = user_passes_test(lambda u: is_cof(u))
cof_required = user_passes_test(is_cof)
def is_buro(user):
@ -20,4 +20,4 @@ def is_buro(user):
except:
return False
buro_required = user_passes_test(lambda u: is_buro(u))
buro_required = user_passes_test(is_buro)

View file

@ -6,4 +6,4 @@ from django.contrib.auth.decorators import user_passes_test
def kfet_is_team(user):
return user.has_perm('kfet.is_team')
teamkfet_required = user_passes_test(lambda u: kfet_is_team(u))
teamkfet_required = user_passes_test(kfet_is_team)