scipost.managers module

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.

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.

specialties_overlap(specialties_slug_list)[source]

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

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

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]