Skip to content

Commit

Permalink
Adds author role during IEU routine #81
Browse files Browse the repository at this point in the history
  • Loading branch information
joemull committed May 5, 2023
1 parent 0e2416d commit 23b85d8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,9 @@ def import_author(author_fields, article):
author.department = department
author.biography = bio or None
author.orcid = orcid_from_url(orcid)
author.save()

author.add_account_role('author', article.journal)
author.save()

article.authors.add(author)
article.save()
Expand Down

0 comments on commit 23b85d8

Please sign in to comment.