Use Django 1.11 format_lazy instead of allow_lazy
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user