From 8b0de593a175d8e42119caab6a6bf4d5511ef12a Mon Sep 17 00:00:00 2001 From: Tyler Hallada Date: Wed, 6 Jun 2018 11:06:47 -0400 Subject: [PATCH] Use Django 1.11 format_lazy instead of allow_lazy --- openedx/core/djangoapps/user_api/accounts/__init__.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/openedx/core/djangoapps/user_api/accounts/__init__.py b/openedx/core/djangoapps/user_api/accounts/__init__.py index 549d14b33a..d89a14600c 100644 --- a/openedx/core/djangoapps/user_api/accounts/__init__.py +++ b/openedx/core/djangoapps/user_api/accounts/__init__.py @@ -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