Skip to content

Conversation

@BBooijLiewes
Copy link
Contributor

obtaining the username of the user using the get_username method.

This uses the USERNAME_FIELD attribute on the abstract user model class
in order to obtain which user attribute to use as username. For the
default user model it defaults back to username, which is a valid
attribute there. See:

https://docs.djangoproject.com/en/3.2/topics/auth/customizing/#django.contrib.auth.models.AbstractBaseUser.get_username

for more info

To be determined: Do we want to build a test for this ourselves? or are we at that point testing django functionality in django-binder, which could be considered redundant.

obaining the username of the user.

This uses the USERNAME_FIELD attribute on the abstract user model class
in order to obtain which user attribute to use as username. For the
default user model it defaults back to username, which is a valid
attribute there. See
https://docs.djangoproject.com/en/3.2/topics/auth/customizing/#django.contrib.auth.models.AbstractBaseUser.get_username

for more info
@BBooijLiewes BBooijLiewes self-assigned this Feb 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants