1
0
forked from ScoDoc/ScoDoc

Fix: gestion logos

This commit is contained in:
Emmanuel Viennet 2022-02-26 10:15:00 +01:00
parent aa609aa0cf
commit 9b27503d01

View File

@ -151,6 +151,8 @@ class Logo:
Le format est renseigné au moment de la lecture (select) ou de la création (create) de l'objet
"""
self.logoname = secure_filename(logoname)
if not self.logoname:
self.logoname = "*** *** nom de logo invalide *** à changer ! *** ***"
self.scodoc_dept_id = dept_id
self.prefix = prefix or ""
if self.scodoc_dept_id: