gaia_cob_pmp.app.models.researcher¶
Attributes¶
Classes¶
Researcher class that extends user class |
Functions¶
|
Validates an input ORCID to make sure it fits the format. |
|
Does this user account correspond to this researcher? |
Module Contents¶
- gaia_cob_pmp.app.models.researcher.validate_orcid_format(value: str)¶
Validates an input ORCID to make sure it fits the format.
- Parameters:
value – The text entered for the ORCID.
- Raises:
ValidationError – If not formatted correctly.
- class gaia_cob_pmp.app.models.researcher.Researcher(*args, **kwargs)¶
Bases:
django.db.models.ModelResearcher class that extends user class
- user¶
- affiliations¶
- orcid¶
- get_absolute_url() str¶
Gets the absolute url for the researcher.
- __str__() str¶
- __repr__() str¶
- gaia_cob_pmp.app.models.researcher.User¶
- gaia_cob_pmp.app.models.researcher.is_researcher(user: User, researcher: Researcher) bool¶
Does this user account correspond to this researcher?
- Parameters:
user – User to check.
researcher – The researcher to check.
- Returns:
True if the user is this Researcher, or false otherwise.