From 9f2a81ba7e42e6474b76bcdf6d7fde44915dbc00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Wed, 2 May 2012 13:42:16 +0200 Subject: [PATCH] alter get_authors_as_string to look at the author_is_government attribute --- tabellio/documents/document.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tabellio/documents/document.py b/tabellio/documents/document.py index 09af68e..e90eb57 100644 --- a/tabellio/documents/document.py +++ b/tabellio/documents/document.py @@ -132,3 +132,8 @@ class Document(Item, BasePublication): @property def seance_vote_date_str(self): return self.seance_vote_date.strftime('%d/%m/%Y') + + def get_authors_as_string(self): + if self.author_is_government: + return 'Gouvernement' + return BasePublication.get_authors_as_string(self)