colleges.managers module

class colleges.managers.FellowQuerySet(model=None, query=None, using=None, hints=None)[source]

Bases: django.db.models.query.QuerySet

guests()[source]
regular()[source]
active()[source]
specialties_overlap(discipline, expertises=[])[source]

Returns all Fellows specialized in the given discipline and any of the (optional) expertises.

This method is also separately implemented for Contributor and Profile objects.

specialties_contain(discipline, expertises=[])[source]

Returns all Fellows specialized in the given discipline and all of the (optional) expertises.

This method is also separately implemented for Contributor and Profile objects.

ordered()[source]

Return ordered queryset explicitly, since this may have big effect on performance.

return_active_for_submission(submission)[source]

This method returns a list of Fellowships that passed the ‘author-check’ for a specific submission.

class colleges.managers.PotentialFellowshipQuerySet(model=None, query=None, using=None, hints=None)[source]

Bases: django.db.models.query.QuerySet

vote_needed(contributor)[source]
to_vote_on(contributor)[source]
voted_on(contributor)[source]