Skip to content

Commit

Permalink
#1565: Handle Corporate authors
Browse files Browse the repository at this point in the history
  • Loading branch information
mauromsl authored and ajrbyers committed May 29, 2020
1 parent 9560633 commit f360fc0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/submission/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,8 +497,7 @@ def how_to_cite(self):

template = "common/elements/how_to_cite.html"
authors = self.frozenauthor_set.all()
author_str = " & ".join(
"%s, %s" % (a.last_name, a.first_name[0]) for a in authors)
author_str = " & ".join(a.citation_name() for a in authors)
year_str = ""
if self.date_published:
year_str = "({:%Y})".format(self.date_published)
Expand Down

0 comments on commit f360fc0

Please sign in to comment.