Merge pull request #18324 from edx/thallada/PLAT-1746-format-lazy

PLAT-1746: Use Django 1.11 format_lazy instead of allow_lazy
This commit is contained in:
Tyler Hallada
2018-06-06 15:09:43 -04:00
committed by GitHub

View File

@@ -2,13 +2,9 @@
Account constants
"""
from django.utils.text import format_lazy
from django.utils.translation import ugettext_lazy as _
# In Django 1.11, there's django.utils.text.format_lazy.
from django.utils.functional import allow_lazy
format_lazy = allow_lazy(lambda s, *a, **kw: s.format(*a, **kw), unicode)
# The minimum and maximum length for the name ("full name") account field
NAME_MIN_LENGTH = 2