Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
9ee6af95
Commit
9ee6af95
authored
Mar 06, 2012
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use own registration form
parent
c790c946
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
accounts/forms.py
accounts/forms.py
+3
-0
urls.py
urls.py
+4
-0
No files found.
accounts/forms.py
View file @
9ee6af95
...
...
@@ -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
urls.py
View file @
9ee6af95
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'
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment