SciPost Code Repository

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

Solve problems with cont/unreg links to Organization

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
parent 344aa83f
No related branches found
No related tags found
Loading
Loading
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