Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed bug in utils.translation.trans_null -- get_date_formats and get…

…_partial_date_formats weren't returning tuples properly

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3306 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 5ce4a56a7cde90afe3214d7f2ebde1cce1e22215 1 parent b98972e
@adrianholovaty adrianholovaty authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/utils/translation/trans_null.py
View
4 django/utils/translation/trans_null.py
@@ -14,5 +14,5 @@ def ngettext(singular, plural, number):
activate = lambda x: None
deactivate = install = lambda: None
get_language = lambda: settings.LANGUAGE_CODE
-get_date_formats = lambda: settings.DATE_FORMAT, settings.DATETIME_FORMAT, settings.TIME_FORMAT
-get_partial_date_formats = lambda: settings.YEAR_MONTH_FORMAT, settings.MONTH_DAY_FORMAT
+get_date_formats = lambda: (settings.DATE_FORMAT, settings.DATETIME_FORMAT, settings.TIME_FORMAT)
+get_partial_date_formats = lambda: (settings.YEAR_MONTH_FORMAT, settings.MONTH_DAY_FORMAT)
Please sign in to comment.
Something went wrong with that request. Please try again.