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
fec715e8
Commit
fec715e8
authored
Mar 07, 2014
by
Jean Michel Rouly
Browse files
Questons are now for a specific section.
parent
e3020e49
Changes
1
Hide whitespace changes
Inline
Side-by-side
researchquestions/website/models.py
View file @
fec715e8
...
...
@@ -12,6 +12,7 @@ class Question( models.Model ):
date
=
models
.
DateTimeField
(
default
=
timezone
.
now
())
text
=
models
.
TextField
(
max_length
=
1000
)
rating
=
models
.
IntegerField
(
default
=
0
)
section
=
models
.
TextField
(
max_length
=
10
,
blank
=
False
)
class
Meta
:
ordering
=
[
"-rating"
]
...
...
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