501 B
501 B
Passbook User Object
The User object has the following attributes:
username
: User's Usernameemail
User's E-Mailname
User's Display Nameis_staff
Boolean field if user is staffis_active
Boolean field if user is activedate_joined
Date User joined/was createdpassword_change_date
Date Password was last changedattributes
Dynamic Attributes
Examples
List all the User's Group Names
for group in user.groups.all():
yield group.name