This module defines the User model class.
-
class defernia.user.User(**kwargs)
Defernia users.
-
emails
The set of Email objects the user has.
-
credentials
The set of Credential objects for user authentication.
-
id
The unique primary key.
-
name
The name. Cannot None nor an empty string.
-
created_at
The created time in datetime.datetime.
-
validate_name(key, name)
Validates name value. It have to be a string longer than
1.
-
picture_url
The profile picture URL. None if not present.
-
class defernia.user.Email(*args, **kwargs)
An email address.
-
EMAIL_PATTERN = <_sre.SRE_Pattern object at 0x4995340>
The re pattern that matches to valid email addresses.
-
user_id
The foreign key id of user.
-
user
The owner.
-
email
The email address.
-
validate_email(key, email)
Validates the email format.