Unverified Commit 348605a0 by Brian Mesick Committed by GitHub

Merge pull request #16310 from edx/bmedx/django111_survey_models

Clean up survey warnings
parents e88d916c 78ebffa8
...@@ -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):
""" """
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment