auth.models.User.get_short_name()

get_short_name() Returns the first_name.

auth.models.User.get_group_permissions()

get_group_permissions(obj=None) Returns a set of permission strings that the user has, through their groups. If obj is passed in, only returns the group permissions for this specific object.

auth.models.User.get_full_name()

get_full_name() Returns the first_name plus the last_name, with a space in between.

auth.models.User.get_all_permissions()

get_all_permissions(obj=None) Returns a set of permission strings that the user has, both through group and user permissions. If obj is passed in, only returns the permissions for this specific object.

auth.models.User.first_name

first_name Optional. 30 characters or fewer.

auth.models.User.email_user()

email_user(subject, message, from_email=None, **kwargs) Sends an email to the user. If from_email is None, Django uses the DEFAULT_FROM_EMAIL. Any **kwargs are passed to the underlying send_mail() call.

auth.models.User.email

email Optional. Email address.

auth.models.User.date_joined

date_joined A datetime designating when the account was created. Is set to the current date/time by default when the account is created.

auth.models.User.check_password()

check_password(raw_password) Returns True if the given raw string is the correct password for the user. (This takes care of the password hashing in making the comparison.)

auth.models.User

class models.User User objects have the following fields: username Required. 150 characters or fewer. Usernames may contain alphanumeric, _, @, +, . and - characters. The max_length should be sufficient for many use cases. If you need a longer length, please use a custom user model. If you use MySQL with the utf8mb4 encoding (recommended for proper Unicode support), specify at most max_length=191 because MySQL can only create unique indexes with 191 characters in that case by default. Us