profiles.managers module

class profiles.managers.ProfileQuerySet(model=None, query=None, using=None, hints=None)[source]

Bases: django.db.models.query.QuerySet

get_unique_from_email_or_None(email)[source]
potential_duplicates()[source]

Returns only potential duplicate Profiles (as identified by first and last names, and separately by (case-insensitive) email).

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

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

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

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

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

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