authentic2_idp_oidc: don't ignore boolean attributes in manager

This commit is contained in:
Serghei Mihai 2022-07-22 09:41:40 +02:00
parent bf500dd81a
commit 3df5b6590d
1 changed files with 1 additions and 1 deletions

View File

@ -252,7 +252,7 @@ class OIDCClient(Service):
display_fields.remove('name')
for field in display_fields:
field_value = getattr(self, field)
if not field_value:
if not isinstance(field_value, bool) and not field_value:
continue
if hasattr(self, 'get_%s_display' % field):
field_value = getattr(self, 'get_%s_display' % field)()