Added verbose_name to Question text.

Other wise it showed as "None [Languaage]" in Django Admin.
EmailTemplateFixes
Piotr Szachewicz 2014-04-30 20:10:18 +02:00
parent 3b1f945b2d
commit a09d5102f2
1 changed files with 1 additions and 1 deletions

View File

@ -261,7 +261,7 @@ class Question(models.Model):
number = models.CharField(max_length=8, help_text=
"eg. <tt>1</tt>, <tt>2a</tt>, <tt>2b</tt>, <tt>3c</tt><br /> "
"Number is also used for ordering questions.")
text = models.TextField(blank=True)
text = models.TextField(blank=True, verbose_name=_("Text"))
type = models.CharField(u"Type of question", max_length=32,
choices = QuestionChoices,
help_text = u"Determines the means of answering the question. " \