helper method to get sanction date formatted as a string

This commit is contained in:
Frédéric Péters 2012-04-17 10:48:52 +02:00
parent 987ebf962d
commit 7b26de3d40
1 changed files with 4 additions and 0 deletions

View File

@ -122,3 +122,7 @@ class Document(Item, BasePublication):
@property
def moniteur_date_str(self):
return self.moniteur_date.strftime('%d/%m/%Y')
@property
def sanction_date_str(self):
return self.sanction_date.strftime('%d/%m/%Y')