Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Luis García
collabmap
Commits
15a6402e
Commit
15a6402e
authored
Apr 02, 2020
by
Luis García
Browse files
Fix questin types
parent
0beda7c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
polls/models.py
polls/models.py
+1
-1
No files found.
polls/models.py
View file @
15a6402e
...
...
@@ -23,7 +23,7 @@ class Poll(models.Model):
# Model for questions
class
Question
(
models
.
Model
):
TYPE_CHOICES
=
[(
'quick'
,
'Quick'
),(
'healt'
,
'Healt'
),]
TYPE_CHOICES
=
[(
'quick'
,
'Quick'
),(
'healt
h
'
,
'Healt
h
'
),]
content
=
models
.
CharField
(
verbose_name
=
'Content'
,
max_length
=
200
)
poll
=
models
.
ForeignKey
(
Poll
,
verbose_name
=
'Poll'
,
on_delete
=
models
.
PROTECT
,
related_name
=
'questions'
)
type
=
models
.
CharField
(
verbose_name
=
'Type'
,
max_length
=
20
,
choices
=
TYPE_CHOICES
,
default
=
'x'
)
...
...
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