Projet

Général

Profil

0001-api-expose-boolean-user-attributes-as-booleans-25632.patch

Frédéric Péters, 10 août 2018 14:28

Télécharger (849 octets)

Voir les différences:

Subject: [PATCH] api: expose boolean user attributes as booleans (#25632)

 src/authentic2/attribute_kinds.py | 1 +
 1 file changed, 1 insertion(+)
src/authentic2/attribute_kinds.py
118 118
        'field_class': forms.BooleanField,
119 119
        'serialize': lambda x: str(int(bool(x))),
120 120
        'deserialize': lambda x: bool(int(x)),
121
        'rest_framework_field_class': serializers.NullBooleanField,
121 122
    },
122 123
    {
123 124
        'label': _('date'),
124
-