The way to remove UNIQUE of username field, user_auth table

131 views
Skip to first unread message

toyam...@gmail.com

unread,
Mar 16, 2016, 8:12:23 AM3/16/16
to Django users
Hi.
I have a question.

I use python-social-auth.
When I registered my facebook account on my APP, username field of user_auth got my name like "johnlennon".
But it is said that username has to be UNIQUE.
So, if someone who also has the name, johnlennon, the person cannot sigh up my APP.
I tried to remove UNIQUE property through Agminer but it was prohibited.
How can I register users who have same names ?

Thank you.

monoBOT

unread,
Mar 16, 2016, 9:16:20 AM3/16/16
to django...@googlegroups.com
usernames should be unique. that is common sense

You should somehow differentiate one user from the other using his email address as username for example. this is a common approach you may have seen sometimes in the past.


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1cca0666-b5d4-4089-8ab3-7d96ddf4782b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
monoBOT
Visite mi sitio(Visit my site): monobotsoft.es/blog/
Reply all
Reply to author
Forward
0 new messages