Using user.get_username() instead of user.username.
This solves an error when using a auth model that does not have a username field.
Showing
Please
register
or
sign in
to comment
This solves an error when using a auth model that does not have a username field.