add a formatting function for publication date
This commit is contained in:
parent
20b6390d46
commit
ae44c72c82
|
@ -82,3 +82,7 @@ class Document(Item, BasePublication):
|
|||
r = BasePublication.related_elements(self, max_items, closeness)
|
||||
doc_ids = [x.id for x in self.associated_docs]
|
||||
return [x for x in r if x.getId() not in doc_ids]
|
||||
|
||||
@property
|
||||
def publication_date_str(self):
|
||||
return self.publication_date.strftime('%d/%m/%Y')
|
||||
|
|
Reference in New Issue