@@ -9,6 +9,7 @@ from collections import OrderedDict
|
|||||||
|
|
||||||
from django.core.exceptions import ValidationError
|
from django.core.exceptions import ValidationError
|
||||||
from django.db import models
|
from django.db import models
|
||||||
|
from django.utils.encoding import python_2_unicode_compatible
|
||||||
from lxml import etree
|
from lxml import etree
|
||||||
from model_utils.models import TimeStampedModel
|
from model_utils.models import TimeStampedModel
|
||||||
from opaque_keys.edx.django.models import CourseKeyField
|
from opaque_keys.edx.django.models import CourseKeyField
|
||||||
@@ -20,6 +21,7 @@ from survey.exceptions import SurveyFormNameAlreadyExists, SurveyFormNotFound
|
|||||||
log = logging.getLogger("edx.survey")
|
log = logging.getLogger("edx.survey")
|
||||||
|
|
||||||
|
|
||||||
|
@python_2_unicode_compatible
|
||||||
class SurveyForm(TimeStampedModel):
|
class SurveyForm(TimeStampedModel):
|
||||||
"""
|
"""
|
||||||
Model to define a Survey Form that contains the HTML form data
|
Model to define a Survey Form that contains the HTML form data
|
||||||
@@ -35,7 +37,7 @@ class SurveyForm(TimeStampedModel):
|
|||||||
class Meta(object):
|
class Meta(object):
|
||||||
app_label = 'survey'
|
app_label = 'survey'
|
||||||
|
|
||||||
def __unicode__(self):
|
def __str__(self):
|
||||||
return self.name
|
return self.name
|
||||||
|
|
||||||
def save(self, *args, **kwargs):
|
def save(self, *args, **kwargs):
|
||||||
|
|||||||
Reference in New Issue
Block a user