do not display number if there is none
This commit is contained in:
parent
90df9abdf9
commit
47d8abe561
|
@ -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):
|
||||
|
|
Reference in New Issue