remotes/origin/top_year_choice
Alexander Burdeiny 10 years ago
parent 8230a7d1e4
commit b55a2ee9ea
  1. 7
      functions/custom_fields.py

@ -273,12 +273,7 @@ class MonthMultiSelectField(models.CharField):
with TimeEncoding(locale) as encoding:
if not isinstance(cls._saved_month_names, list):
cls._saved_month_names = list(month_name)
try:
# python 2.7.6
m = cls._saved_month_names[month_num].decode(encoding)
except (TypeError, ):
# python 2.7.3
m = cls._saved_month_names[month_num]
m = cls._saved_month_names[month_num].decode(encoding or 'utf-8')
return m
@classmethod

Loading…
Cancel
Save