509 B
509 B
Passbook User Object
The User object has the following attributes:
username: User's username.emailUser's email.nameUser's display mame.is_staffBoolean field if user is staff.is_activeBoolean field if user is active.date_joinedDate user joined/was created.password_change_dateDate password was last changed.attributesDynamic attributes.
Examples
List all the User's group names:
for group in user.groups.all():
yield group.name