alter get_authors_as_string to look at the author_is_government attribute

This commit is contained in:
Frédéric Péters 2012-05-02 13:42:16 +02:00
parent 99903f141d
commit 9f2a81ba7e
1 changed files with 5 additions and 0 deletions

View File

@ -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)