diff --git a/seahub/profile/views.py b/seahub/profile/views.py index 6d473c4e5e..b90e2c20c2 100644 --- a/seahub/profile/views.py +++ b/seahub/profile/views.py @@ -87,7 +87,7 @@ def edit_profile(request): 'two_factor_auth_enabled': has_two_factor_auth(), } - if has_two_factor_auth: + if has_two_factor_auth(): from seahub_extra.two_factor.models import StaticDevice from seahub_extra.two_factor.utils import default_device