scipost.managers module

class scipost.managers.FellowManager[source]

Bases: django.db.models.manager.Manager

Custom defined filters for the Fellow model.

active()[source]

Filter Fellows active within its set date ranges.

class scipost.managers.ContributorQuerySet(model=None, query=None, using=None, hints=None)[source]

Bases: django.db.models.query.QuerySet

Custom defined filters for the Contributor model.

active()[source]

Return all validated and vetted Contributors.

nonduplicates()[source]

Filter out duplicate Contributors.

available()[source]

Filter out the Contributors that have active unavailability periods.

awaiting_validation()[source]

Filter Contributors that have not been validated by the user.

awaiting_vetting()[source]

Filter Contributors that have not been vetted through.

fellows()[source]

TODO: NEEDS UPDATE TO NEW FELLOWSHIP RELATIONS.

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

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

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

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

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

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

with_duplicate_names()[source]

Returns only potential duplicate Contributors (as identified by first and last names). Admins and superusers are explicitly excluded.

with_duplicate_email()[source]

Return Contributors having duplicate emails.

class scipost.managers.UnavailabilityPeriodManager[source]

Bases: django.db.models.manager.Manager

today()[source]
future()[source]
class scipost.managers.AuthorshipClaimQuerySet(model=None, query=None, using=None, hints=None)[source]

Bases: django.db.models.query.QuerySet

awaiting_vetting()[source]