views: remove dead code
This commit is contained in:
parent
9f3ec479ad
commit
54ba992b15
|
@ -34,17 +34,6 @@ SET_PASSWORD_FORM_CLASS = a2_utils.import_module_or_class(
|
||||||
a2_app_settings.A2_REGISTRATION_SET_PASSWORD_FORM_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):
|
class LoggerMixin(object):
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
self.logger = logging.getLogger(__name__)
|
self.logger = logging.getLogger(__name__)
|
||||||
|
|
Loading…
Reference in New Issue