Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jean Michel Rouly
research-questions
Commits
cebb8445
Commit
cebb8445
authored
Dec 03, 2013
by
Jean Michel Rouly
Browse files
Added QuestionForm for creating questions.
parent
14bfa849
Changes
1
Hide whitespace changes
Inline
Side-by-side
researchquestions/website/forms.py
0 → 100644
View file @
cebb8445
from
website.models
import
Question
,
Comment
,
Reply
from
django.db
import
models
from
django.forms
import
ModelForm
class
QuestionForm
(
ModelForm
):
class
Meta
:
model
=
Question
fields
=
(
'text'
,)
exclude
=
(
'user'
,
'date'
,
'rating'
)
localized_fields
=
(
'date'
,)
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