add more attributes for formatted dates
This commit is contained in:
parent
30e5aba14b
commit
9e96cd38a7
|
@ -127,3 +127,7 @@ class Document(Item, BasePublication):
|
|||
@property
|
||||
def sanction_date_str(self):
|
||||
return self.sanction_date.strftime('%d/%m/%Y')
|
||||
|
||||
@property
|
||||
def seance_vote_date_str(self):
|
||||
return self.seance_vote_date.strftime('%d/%m/%Y')
|
||||
|
|
|
@ -146,6 +146,12 @@ class Question(Item, BasePublication):
|
|||
return ''
|
||||
return self.date.strftime('%d/%m/%Y')
|
||||
|
||||
@property
|
||||
def seance_com_date_str(self):
|
||||
if not self.date:
|
||||
return ''
|
||||
return self.seance_com_date.strftime('%d/%m/%Y')
|
||||
|
||||
@property
|
||||
def associated_docs(self):
|
||||
docs = []
|
||||
|
|
Reference in New Issue