Skip to content

Instantly share code, notes, and snippets.

@percyperez
Created February 26, 2012 18:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save percyperez/1918232 to your computer and use it in GitHub Desktop.
Save percyperez/1918232 to your computer and use it in GitHub Desktop.
Convert view for lazysignup with template_name
@allow_lazy_user
def convert(request, form_class=UserCreationForm,
redirect_field_name='redirect_to',
anonymous_redirect=settings.LOGIN_URL,
template_name='lazysignup/convert.html'):
...
...
...
return direct_to_template(request, template_name, {
'form': form,
'redirect_to': redirect_to
},)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment