auth_fc: misc django 2 compatibility (#48158)

This commit is contained in:
Paul Marillonnet 2020-10-30 15:38:15 +01:00
parent 1cc2fdf70d
commit a0f1062077
1 changed files with 1 additions and 1 deletions

View File

@ -362,7 +362,7 @@ class LoginOrLinkView(PopupViewMixin, FcOAuthSessionViewMixin, View):
self.logger.debug('updating user_info %s', self.fc_account.user_info)
def uniqueness_check_failed(self, request):
if request.user.is_authenticated():
if request.user.is_authenticated:
# currently logged :
if models.FcAccount.objects.filter(user=request.user, order=0).count():
# cannot link because we are already linked to another FC account