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]
senior()[source]
regular_or_senior()[source]
active()[source]
active_in_year(year)[source]

Filter for Fellows which were active during a certain calendar year.

former()[source]
specialties_overlap(specialties_slug_list)[source]

Returns all Fellows whose specialties overlap with those specified in the slug list.

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]
class colleges.managers.FellowshipNominationQuerySet(model=None, query=None, using=None, hints=None)[source]

Bases: django.db.models.query.QuerySet

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

Bases: django.db.models.query.QuerySet

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

Bases: django.db.models.query.QuerySet

agree()[source]
abstain()[source]
disagree()[source]