Models reference¶
TODO: these models still need to be stripped and documented for “v2 2.0”.
-
class
lizard_auth_server.models.UserProfile(id, user, created_at, updated_at)[source]¶ -
exception
DoesNotExist¶
-
exception
MultipleObjectsReturned¶
-
all_organisation_roles(portal, return_explanation=False)[source]¶ Return a queryset of OrganisationRoles that apply to this profile.
If
return_explanationis True, return a dict with explanatory results, instead.
-
is_active¶ Returns True when the account is active, meaning the User has not been deactivated by an admin.
Note: unrelated to account activation.
-
organisation¶ Return the name of one of this user’s organisations, or None.
For backward compatibility. Instead of many Organisation objects, a user used to have a single organisation string.
-
exception