correction rapport référencé avant défini

This commit is contained in:
2019-02-27 22:29:57 +01:00
parent 145501fe81
commit edd77fe431

View File

@@ -103,7 +103,9 @@ def dossier_view(request):
docs_attaches = get_docs_attaches(request, 'DOCS_ATTACHES', nodossier)
if nodossier.startswith('PL'):
# lire rapport de rdf
rapport = get_rapport_by_no(request, nodossier)
rapport = get_rapport_by_no(request, nodossier)
else:
rapport = []
# select background color according to society
bg_color = "bg-%s" % societe