user_datas: corrige FranceConnectUserData qui retourne toujours la même chose
This commit is contained in:
parent
9ce15b8282
commit
cdb4ef5e9d
|
@ -25,10 +25,9 @@ class FranceConnectUserData(object):
|
|||
|
||||
def __unicode__(self):
|
||||
from authentic2_auth_fc.models import FcAccount
|
||||
try:
|
||||
FcAccount.objects.filter(user=self.user).exists()
|
||||
if FcAccount.objects.filter(user=self.user).exists():
|
||||
return u'Utilisateur relié à un compte FranceConnect'
|
||||
except FcAccount.DoesNotExist:
|
||||
else:
|
||||
return u''
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue