def get_form_class(backend, request):
 form_class = None
 form_class_string = facebook_settings.FACEBOOK_REGISTRATION_FORM
 if form_class_string:
  try:
   form_class = get_class_from_string(form_class_string, None)
  except ImportError:
   pass
 if (not form_class):
  backend = (backend or get_registration_backend())
  if backend:
   form_class = backend.get_form_class(request)
 assert form_class, 'we couldnt find a form class, so we cant go on like this'
 return form_class

def get_form_class ( backend , request ) : form_class = None form_class_string = facebook_settings . FACEBOOK_REGISTRATION_FORM if form_class_string : try : form_class = get_class_from_string ( form_class_string , None ) except ImportError : pass if ( not form_class ) : backend = ( backend or get_registration_backend ( ) ) if backend : form_class = backend . get_form_class ( request ) assert form_class , 'we couldnt find a form class, so we cant go on like this' return form_class
will use registration form in the following order: 1 .