def get_registration_extension_form(*args, **kwargs):
 if (not settings.FEATURES.get('ENABLE_COMBINED_LOGIN_REGISTRATION')):
  return None
 if (not getattr(settings, 'REGISTRATION_EXTENSION_FORM', None)):
  return None
 (module, klass) = settings.REGISTRATION_EXTENSION_FORM.rsplit('.', 1)
 module = import_module(module)
 return getattr(module, klass)(*args, **kwargs)

def get_registration_extension_form ( * args , ** kwargs ) : if ( not settings . FEATURES . get ( 'ENABLE_COMBINED_LOGIN_REGISTRATION' ) ) : return None if ( not getattr ( settings , 'REGISTRATION_EXTENSION_FORM' , None ) ) : return None ( module , klass ) = settings . REGISTRATION_EXTENSION_FORM . rsplit ( '.' , 1 ) module = import_module ( module ) return getattr ( module , klass ) ( * args , ** kwargs )
convenience function for getting the custom form set in settings .