views: remove dead code

This commit is contained in:
Benjamin Dauvergne 2017-07-28 16:58:04 +02:00
parent 9f3ec479ad
commit 54ba992b15
1 changed files with 0 additions and 11 deletions

View File

@ -34,17 +34,6 @@ SET_PASSWORD_FORM_CLASS = a2_utils.import_module_or_class(
a2_app_settings.A2_REGISTRATION_SET_PASSWORD_FORM_CLASS)
def user_has_fcaccount(user):
'''Return True if user a link to FC'''
try:
return user.fcaccount is not None
except models.FcAccount.DoesNotExist:
return False
fcaccount_required = user_passes_test(user_has_fcaccount, '/')
class LoggerMixin(object):
def __init__(self, *args, **kwargs):
self.logger = logging.getLogger(__name__)