Sites Framework: Reuseable usernames


I’m building a new multitenant site with the aid of the sites framework.

I’d like to allow users to tie each username only one site and not be shared across all sites. However, when settings up site FK in the user model , the USERNAME_FIELD cannot be None nor can it be a list (from unique_together). Even if I use just “email” in username field, it has to be a unique entry. So the db restraint also prevents me from just using a custom manager

Do I have to create a completely custom user model? Would it be possible to reuse the standard “AbstractUser” ?

Silencing the checkseem to work

“auth.E003”, # Allow non-unique usernames
“auth.W004”, # Allow non-unique usernames