biblio error if file missing

This commit is contained in:
Sanj 2011-12-16 23:44:21 +05:30
parent 8631ed7f64
commit 104c88517b

View File

@ -215,7 +215,7 @@ class Document(ItfModel):
'id': self.id, 'id': self.id,
'title': self.title, 'title': self.title,
'intro': self.intro, 'intro': self.intro,
'file': self.file.url 'file': self.file.url if self.file else ''
} }
def list_dict(self): def list_dict(self):