RegistrationForm subclass not showing up
Hi - I'm new to Django and am using django-registration to set up new
users.
The basic RegistrationForm shows up fine in my template (which just
uses {{ form.as_table }} to generate fields inside the form HTML), but
I now want to use the RegistrationFormTermsOfService subclass instead.
I set it as a parameter in urls.py as follows:
url(r'^register/$',
register,
{'form_class':
RegistrationFormTermsOfService},
name='registration_register'),
... but the original RegistrationForm is still showing instead. Any
ideas why this would be? Do I have to remove the default 'form_class'
value in the register declaration in views.py (as that still gives
RegistrationForm as the default)? Or do I need to alter my template?
I'm sure I'm missing something really obvious - any help gratefully
received.
Kat
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home