From f0fee5a2474ba4f2a8b3b876e52819be6f1f7018 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Sun, 4 Dec 2011 13:16:40 +0100 Subject: [PATCH] handle documents without number --- tabellio/documents/document.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tabellio/documents/document.py b/tabellio/documents/document.py index fce4350..388d6cc 100644 --- a/tabellio/documents/document.py +++ b/tabellio/documents/document.py @@ -62,6 +62,8 @@ class Document(Item, BasePublication): @property def reftitle(self): + if not self.no: + return '%s (%s)' % (self.doctype_str, self.session) if self.nodoc: if self.noannexe: return u'%s - %s (%s) - N° %s (Annexe %s)' % (