SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit b0f9978a authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Tweak Profile roles. Fixes SCIPOST-1EB

parent 95f43262
No related branches found
No related tags found
No related merge requests found
...@@ -89,7 +89,7 @@ class Profile(models.Model): ...@@ -89,7 +89,7 @@ class Profile(models.Model):
def roles(self): def roles(self):
try: try:
return self.contributor.roles return self.contributor.roles
except Contributor.DoesNotExist: except KeyError, Contributor.DoesNotExist:
return None return None
def __str__(self): def __str__(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment