Commit 9ee6af95 authored by Michal Čihař's avatar Michal Čihař

Use own registration form

parent c790c946
......@@ -3,6 +3,7 @@ from django.utils.translation import ugettext_lazy as _
from accounts.models import Profile
from django.contrib.auth.models import User
from registration.forms import RegistrationFormUniqueEmail
class ProfileForm(forms.ModelForm):
class Meta:
......@@ -31,3 +32,5 @@ class ContactForm(forms.Form):
widget = forms.Textarea
)
class RegistrationForm(RegistrationFormUniqueEmail):
pass
from django.conf.urls.defaults import patterns, include, url
from django.contrib import admin
from accounts.forms import RegistrationForm
admin.autodiscover()
urlpatterns = patterns('',
......@@ -19,6 +22,7 @@ urlpatterns = patterns('',
# Auth
url(r'^accounts/', include('registration.urls')),
url(r'^accoints/register/$', 'registration.views.register', {'form_class': RegistrationForm}, name='registration_register'),
url(r'^accounts/profile/', 'accounts.views.profile'),
url(r'^contact/', 'accounts.views.contact'),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment