Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use USERNAME_FIELD #57

Open
marcospereirampj opened this issue Aug 12, 2016 · 3 comments
Open

Use USERNAME_FIELD #57

marcospereirampj opened this issue Aug 12, 2016 · 3 comments

Comments

@marcospereirampj
Copy link

Sugestion: use USERNAME_FIELD instead of the attribute "username". If the model "User" is overwritten, this may not work.

@uri-rodberg
Copy link
Contributor

Where is the attribute "username" used?

@frankwiles
Copy link
Member

It's used all over the place in the pre-built views here https://github.com/revsys/django-friendship/blob/master/friendship/views.py

@uri-rodberg
Copy link
Contributor

We don't use the default views (defined in friendship/views.py) in Speedy Net and anyway, these views depend on the username. So I guess you can keep it this way. It's possible to use django-friendship without using the default views.

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

No branches or pull requests

3 participants