Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-wiki
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
django-wiki
Commits
c96d656a
Commit
c96d656a
authored
Feb 23, 2013
by
Juan Diego Caballero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
User creation form extendedto include email as a required field
parent
3932d273
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
wiki/forms.py
+1
-1
wiki/views/accounts.py
+2
-2
No files found.
wiki/forms.py
View file @
c96d656a
...
...
@@ -401,7 +401,7 @@ class SearchForm(forms.Form):
query
=
forms
.
CharField
(
widget
=
forms
.
TextInput
(
attrs
=
{
'placeholder'
:
_
(
u'Search...'
),
'class'
:
'search-query'
}),
required
=
False
)
class
UserCreat
e
Form
(
UserCreationForm
):
class
UserCreat
ion
Form
(
UserCreationForm
):
email
=
forms
.
EmailField
(
required
=
True
)
class
Meta
:
...
...
wiki/views/accounts.py
View file @
c96d656a
...
...
@@ -13,13 +13,13 @@ from django.utils.translation import ugettext as _
from
django.views.generic.base
import
View
from
django.views.generic.edit
import
CreateView
,
FormView
from
wiki
import
forms
from
wiki.models
import
URLPath
from
wiki.conf
import
settings
from
wiki.forms
import
UserCreateForm
class
Signup
(
CreateView
):
model
=
User
form_class
=
UserCreate
Form
form_class
=
forms
.
UserCreation
Form
template_name
=
"wiki/accounts/signup.html"
def
dispatch
(
self
,
request
,
*
args
,
**
kwargs
):
...
...
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