I will answer my own question since I found the answer, may be it can
help someone:
in the views add this line:
from registration.forms import RegistrationFormTermsOfService
and then in the register function change form_class from
RegistrationForm to RegistrationFormTermsOfService
in the template registration_form you can now use the {{ form.tos }}
It's only a matter of form subclassing and is explained here
(somewhere down the page):
http://docs.djangoproject.com/en/dev/ref/forms/api/#ref-forms-api
On Mar 12, 5:56 pm, Bastien <[email protected]> wrote:
> Hi,
>
> I'd like to use the available functionality "terms of service" in
> Django-Registration but have no clue about how I do that. I already
> have the basic thing running on my project.
>
> thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---