Skip to content
Snippets Groups Projects
Commit 8b0de593 authored by Tyler Hallada's avatar Tyler Hallada
Browse files

Use Django 1.11 format_lazy instead of allow_lazy

parent 1f42d1b3
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment