auth.User
Users within the Django authentication system are represented by this model.
Username and password are required. Other fields are optional.
Fields
Field | Type | Description |
---|---|---|
date_joined | Date (with time) | date joined |
Email address | email address | |
first_name | String (up to 150) | first name |
groups.all | List | all related auth.Group objects |
groups.count | Integer | number of related auth.Group objects |
id | Integer | ID |
is_active | Boolean (Either True or False) | active - Designates whether this user should be treated as active. Unselect this instead of deleting accounts. |
is_staff | Boolean (Either True or False) | staff status - Designates whether the user can log into this admin site. |
is_superuser | Boolean (Either True or False) | superuser status - Designates that this user has all permissions without explicitly assigning them. |
last_login | Date (with time) | last login |
last_name | String (up to 150) | last name |
logentry_set.all | List | all related admin.LogEntry objects |
logentry_set.count | Integer | number of related admin.LogEntry objects |
password | String (up to 128) | password |
user_permissions.all | List | all related auth.Permission objects |
user_permissions.count | Integer | number of related auth.Permission objects |
username | String (up to 150) | username - Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. |