alter get_authors_as_string to look at the author_is_government attribute
This commit is contained in:
parent
99903f141d
commit
9f2a81ba7e
|
@ -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)
|
||||
|
|
Reference in New Issue