def get_registration_backend():
 backend = None
 backend_class = None
 registration_backend_string = getattr(facebook_settings, 'FACEBOOK_REGISTRATION_BACKEND', None)
 if registration_backend_string:
  backend_class = get_class_from_string(registration_backend_string)
 if backend_class:
  backend = backend_class()
 return backend

def get_registration_backend ( ) : backend = None backend_class = None registration_backend_string = getattr ( facebook_settings , 'FACEBOOK_REGISTRATION_BACKEND' , None ) if registration_backend_string : backend_class = get_class_from_string ( registration_backend_string ) if backend_class : backend = backend_class ( ) return backend
ensures compatability with the new and old version of django registration .