This commit is contained in:
Eleni Lixourioti 2014-10-31 16:46:49 +00:00
commit 959ee34324

View File

@ -11,6 +11,7 @@ import inspect
import re import re
import warnings import warnings
from decimal import Decimal, DecimalException from decimal import Decimal, DecimalException
import django
from django import forms from django import forms
from django.core import validators from django.core import validators
from django.core.exceptions import ValidationError from django.core.exceptions import ValidationError
@ -143,7 +144,10 @@ class Field(object):
self.label = None self.label = None
if help_text is not None: if help_text is not None:
self.help_text = strip_multiple_choice_msg(smart_text(help_text)) help_text = smart_text(help_text)
if django.VERSION < (1, 6):
help_text = strip_multiple_choice_msg(help_text)
self.help_text = help_text
else: else:
self.help_text = None self.help_text = None