Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
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
edx
edx-platform
Commits
348605a0
Unverified
Commit
348605a0
authored
Oct 27, 2017
by
Brian Mesick
Committed by
GitHub
Oct 27, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #16310 from edx/bmedx/django111_survey_models
Clean up survey warnings
parents
e88d916c
78ebffa8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
lms/djangoapps/survey/models.py
+6
-0
No files found.
lms/djangoapps/survey/models.py
View file @
348605a0
...
@@ -27,6 +27,9 @@ class SurveyForm(TimeStampedModel):
...
@@ -27,6 +27,9 @@ class SurveyForm(TimeStampedModel):
name
=
models
.
CharField
(
max_length
=
255
,
db_index
=
True
,
unique
=
True
)
name
=
models
.
CharField
(
max_length
=
255
,
db_index
=
True
,
unique
=
True
)
form
=
models
.
TextField
()
form
=
models
.
TextField
()
class
Meta
(
object
):
app_label
=
'survey'
def
__unicode__
(
self
):
def
__unicode__
(
self
):
return
self
.
name
return
self
.
name
...
@@ -170,6 +173,9 @@ class SurveyAnswer(TimeStampedModel):
...
@@ -170,6 +173,9 @@ class SurveyAnswer(TimeStampedModel):
# since it didn't exist in the beginning, it is nullable
# since it didn't exist in the beginning, it is nullable
course_key
=
CourseKeyField
(
max_length
=
255
,
db_index
=
True
,
null
=
True
)
course_key
=
CourseKeyField
(
max_length
=
255
,
db_index
=
True
,
null
=
True
)
class
Meta
(
object
):
app_label
=
'survey'
@classmethod
@classmethod
def
do_survey_answers_exist
(
cls
,
form
,
user
):
def
do_survey_answers_exist
(
cls
,
form
,
user
):
"""
"""
...
...
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