def get_primary_contributors(self):
primary_credits = []<EOL>credits = self.credits.exclude(credit_option=None).order_by(<EOL>'<STR_LIT>'<EOL>)<EOL>if credits:<EOL><INDENT>primary_role_priority = credits[<NUM_LIT:0>].credit_option.role_priority<EOL>for credit in credits:<EOL><INDENT>if credit.credit_option.role_priority == primary_role_priority:<EOL><INDENT>primary_credits.append(credit)<EOL><DEDENT><DEDENT><DEDENT>contributors = []<EOL>for credit in primary_credits:<EOL><INDENT>contributor = credit.contributor<EOL>if contributor.is_permitted:<EOL><INDENT>contributors.append(contributor)<EOL><DEDENT><DEDENT>return contributors<EOL>
Returns a list of primary contributors, with primary being defined
as those contributors that have the highest role assigned (in terms
of priority). Only permitted contributors are returned.