do not display number if there is none

This commit is contained in:
Frédéric Péters 2011-11-22 11:23:00 +01:00
parent 90df9abdf9
commit 47d8abe561
1 changed files with 4 additions and 1 deletions

View File

@ -195,7 +195,10 @@ class Dossier(Item, BasePublication):
@property
def reftitle(self):
return '%s - %s (%s)' % (self.dostype_str, self.no, self.session)
if self.no:
return '%s - %s (%s)' % (self.dostype_str, self.no, self.session)
else:
return '%s (%s)' % (self.dostype_str, self.session)
@property
def associated_docs(self):