diff --git a/tkupek_elearning/elearning/models.py b/tkupek_elearning/elearning/models.py index fe455a2..e3978c7 100644 --- a/tkupek_elearning/elearning/models.py +++ b/tkupek_elearning/elearning/models.py @@ -1,3 +1,4 @@ +# coding=utf-8 from __future__ import unicode_literals import hashlib @@ -78,7 +79,7 @@ class UserAnswer(models.Model): correct = models.NullBooleanField(null=True) def __unicode__(self): - return str(self.user) + " - " + str(self.question.id) + return "" class Meta: unique_together = (('user', 'question'),) @@ -92,4 +93,4 @@ class UserAnswerOptions(models.Model): unique_together = (('user_answer', 'option'),) def __unicode__(self): - return str(self.user_answer) + " - " + str(self.option) + return unicode(str(self.user_answer) + " - " + str(self.option), "utf-8")