mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-25 15:45:23 +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
|
|
|