summaryrefslogtreecommitdiff
path: root/django/utils
diff options
context:
space:
mode:
Diffstat (limited to 'django/utils')
-rw-r--r--django/utils/formats.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/django/utils/formats.py b/django/utils/formats.py
index db2930316a..77479ae2a6 100644
--- a/django/utils/formats.py
+++ b/django/utils/formats.py
@@ -40,6 +40,7 @@ def get_format(format_type):
language (locale), defaults to the format in the settings.
format_type is the name of the format, e.g. 'DATE_FORMAT'
"""
+ format_type = smart_str(format_type)
if settings.USE_L10N:
for module in get_format_modules():
try: