SciPost Code Repository

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

Improve again

parent 0bc2ee98
No related branches found
No related tags found
No related merge requests found
......@@ -98,10 +98,12 @@ class Organization(models.Model):
def get_contributor_authors(self):
# pubauthtable = PublicationAuthorsTable.objects.filter(affiliations__in=[self])
# return Contributor.objects.filter(
return self.publicationauthorstable_set.select_related('contributor')
return self.publicationauthorstable_set.select_related(
'contributor').order_by('contributor__user__last_name')
def get_unregistered_authors(self):
return self.publicationauthorstable_set.select_related('unregistered_author')
return self.publicationauthorstable_set.select_related(
'unregistered_author').order_by('unregistered_author__last_name')
########################
......
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