gc2gh / django-profile

Automatically exported from code.google.com/p/django-profile
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

package registration form as a template tag #39

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This allows placing the registration form on the frontpage etc.

Usage:
{% load account %}
{% registration_form %}

 - adds a template tag "registration_form" to show the registration form
 - factors out the actual registration form

The form submits to the register view. Redirection after successful form
submission happens as usual (so you won't go back to the originating page)

One side-effect is that the main reg form action is now "{% url
userprofile.views.register %}" instead of "" but this seems ok

Original issue reported on code.google.com by ericd...@gmail.com on 22 Nov 2008 at 4:23

Attachments:

GoogleCodeExporter commented 9 years ago
Fantastic contribution. I'm going to add it to the trunk.

Original comment by david.ru...@gmail.com on 27 Nov 2008 at 6:09