Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use username getter instead of accessing field directly
This change adds support for custom user models without `username` field. `username` field is not guaranteed in custom usermodels in django. Custom user models however can specify another field designated as a username via `USERNAME_FIELD`, whose value is always returned from `get_username()` Should resolve issue #267
- Loading branch information