formatting for new date properties
This commit is contained in:
parent
573794b8de
commit
8210c76f35
|
@ -97,3 +97,11 @@ class Document(Item, BasePublication):
|
|||
@property
|
||||
def publication_date_str(self):
|
||||
return self.publication_date.strftime('%d/%m/%Y')
|
||||
|
||||
@property
|
||||
def adoption_date_str(self):
|
||||
return self.adoption_date.strftime('%d/%m/%Y')
|
||||
|
||||
@property
|
||||
def moniteur_date_str(self):
|
||||
return self.moniteur_date.strftime('%d/%m/%Y')
|
||||
|
|
Reference in New Issue