def set_enabled_auth_backend(backend_id):
 siteconfig = SiteConfiguration.objects.get_current()
 siteconfig.set(u'auth_backend', backend_id)

def set_enabled_auth_backend ( backend_id ) : siteconfig = SiteConfiguration . objects . get_current ( ) siteconfig . set ( u'auth_backend' , backend_id )
set the authentication backend to be used .