mirror of
https://github.com/retspen/webvirtcloud
synced 2024-11-01 12:04:15 +00:00
b095a77da5
call configure_user() while adding user from form
13 lines
370 B
Python
13 lines
370 B
Python
from django.contrib.auth.backends import RemoteUserBackend
|
|
from accounts.models import UserInstance, UserAttributes
|
|
from instances.models import Instance
|
|
|
|
class MyRemoteUserBackend(RemoteUserBackend):
|
|
|
|
#create_unknown_user = True
|
|
|
|
def configure_user(self, user):
|
|
#user.is_superuser = True
|
|
UserAttributes.configure_user(user)
|
|
return user
|
|
|