Projet

Général

Profil

0001-lille-urban-card-make-photo-optional-40085.patch

Frédéric Péters, 21 février 2020 15:52

Télécharger (1,02 ko)

Voir les différences:

Subject: [PATCH] lille urban card: make photo optional (#40085)

 passerelle/contrib/lille_urban_card/models.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
passerelle/contrib/lille_urban_card/models.py
99 99
            data['civilite'] = 2
100 100
        data['code_postal'] = int(data['code_postal'])
101 101
        data['ville'] = data['ville'].upper()
102
        data['photo'] = data['photo']['content']
102
        if 'photo' in data:
103
            data['photo'] = data['photo']['content']
103 104
        services = {}
104 105
        for key in sorted(data.keys()):
105 106
            if key.startswith('service_'):
106
-