From 7b26de3d4094f1ff1b54fbdd168cc0678af12cb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Tue, 17 Apr 2012 10:48:52 +0200 Subject: [PATCH] helper method to get sanction date formatted as a string --- tabellio/documents/document.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tabellio/documents/document.py b/tabellio/documents/document.py index 7d1c221..5089c9f 100644 --- a/tabellio/documents/document.py +++ b/tabellio/documents/document.py @@ -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')