def handle_register(request, text_template=None, html_template=None, subject=None, email_data=None, *args, **kwargs):
 if (request.method == 'POST'):
  form = RegisterForm(request.POST)
  if form.is_valid():
   form = try_send_email_with_form(RegistrationProfile.objects.create_inactive_user, form, 'email', form.cleaned_data['username'], form.cleaned_data['password'], form.cleaned_data['email'], locale=request.LANGUAGE_CODE, text_template=text_template, html_template=html_template, subject=subject, email_data=email_data, volunteer_interest=form.cleaned_data['interested'], *args, **kwargs)
   if (not form.is_valid()):
    User.objects.filter(email=form.instance.email).delete()
   else:
    statsd.incr('user.register')
  return form
 return RegisterForm()

def handle_register ( request , text_template = None , html_template = None , subject = None , email_data = None , * args , ** kwargs ) : if ( request . method == 'POST' ) : form = RegisterForm ( request . POST ) if form . is_valid ( ) : form = try_send_email_with_form ( RegistrationProfile . objects . create_inactive_user , form , 'email' , form . cleaned_data [ 'username' ] , form . cleaned_data [ 'password' ] , form . cleaned_data [ 'email' ] , locale = request . LANGUAGE_CODE , text_template = text_template , html_template = html_template , subject = subject , email_data = email_data , volunteer_interest = form . cleaned_data [ 'interested' ] , * args , ** kwargs ) if ( not form . is_valid ( ) ) : User . objects . filter ( email = form . instance . email ) . delete ( ) else : statsd . incr ( 'user.register' ) return form return RegisterForm ( )
handle to help registration .