|
|
|
@ -273,7 +273,13 @@ class MonthMultiSelectField(models.CharField): |
|
|
|
with TimeEncoding(locale) as encoding: |
|
|
|
with TimeEncoding(locale) as encoding: |
|
|
|
if not isinstance(cls._saved_month_names, list): |
|
|
|
if not isinstance(cls._saved_month_names, list): |
|
|
|
cls._saved_month_names = list(month_name) |
|
|
|
cls._saved_month_names = list(month_name) |
|
|
|
return cls._saved_month_names[month_num].decode(encoding) |
|
|
|
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] |
|
|
|
|
|
|
|
return m |
|
|
|
|
|
|
|
|
|
|
|
@classmethod |
|
|
|
@classmethod |
|
|
|
def make_choice_display(cls, m, y): |
|
|
|
def make_choice_display(cls, m, y): |
|
|
|
|