How To Over-ride Default Registration Form In Django-registration Version 1.0?
I'm migrating from an older version of Django-Registration to the 1.0 version of the module. I'm overriding the normal registration form with a custom one that I have created. This
Solution 1:
Firstly, import the view from the default backend module if you want to use the default backend.
from registration.backends.default.views import RegistrationView
Secondly, you can set the form_class
by subclassing RegistrationView
, or by passing it as an argument to as_view()
. See the CBV docs for further information.
url (
r'^accounts/register/$',
RegistrationView.as_view(form_class=extendedRegistrationForm),
)
Post a Comment for "How To Over-ride Default Registration Form In Django-registration Version 1.0?"