SciPost Code Repository

Skip to content
Snippets Groups Projects
  • Jean-Sébastien Caux's avatar
    Solve problems with cont/unreg links to Organization · f6faf784
    Jean-Sébastien Caux authored
    The solution involves a bit of hacking via a list comprehension of ids,
    since related_name='+' has been set for contributor and unregistered_author
    fields of PublicationAuthorsTable.
    
    The previous version returned the wrong sort of objects, i.e.
    
    return self.publicationauthorstable_set.select_related(
       'contributor').order_by('contributor__user__last_name')
    
    returned PublicationAuthorsTable objects instead of Contributors
    f6faf784
Code owners
Assign users and groups as approvers for specific file changes. Learn more.