From a09d5102f2e8428ec37b9da6c5e18b90998f60be Mon Sep 17 00:00:00 2001 From: Piotr Szachewicz Date: Wed, 30 Apr 2014 20:10:18 +0200 Subject: [PATCH] Added verbose_name to Question text. Other wise it showed as "None [Languaage]" in Django Admin. --- questionnaire/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/questionnaire/models.py b/questionnaire/models.py index 48ab7d9..1b8cad7 100644 --- a/questionnaire/models.py +++ b/questionnaire/models.py @@ -261,7 +261,7 @@ class Question(models.Model): number = models.CharField(max_length=8, help_text= "eg. 1, 2a, 2b, 3c
" "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. " \