diff --git a/lms/djangoapps/survey/models.py b/lms/djangoapps/survey/models.py index ecc2342b0f..f3c10c16a8 100644 --- a/lms/djangoapps/survey/models.py +++ b/lms/djangoapps/survey/models.py @@ -27,6 +27,9 @@ class SurveyForm(TimeStampedModel): name = models.CharField(max_length=255, db_index=True, unique=True) form = models.TextField() + class Meta(object): + app_label = 'survey' + def __unicode__(self): return self.name @@ -170,6 +173,9 @@ class SurveyAnswer(TimeStampedModel): # since it didn't exist in the beginning, it is nullable course_key = CourseKeyField(max_length=255, db_index=True, null=True) + class Meta(object): + app_label = 'survey' + @classmethod def do_survey_answers_exist(cls, form, user): """