Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
01191e34
Unverified
Commit
01191e34
authored
6 years ago
by
Tyler Hallada
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #18324 from edx/thallada/PLAT-1746-format-lazy
PLAT-1746: Use Django 1.11 format_lazy instead of allow_lazy
parents
f7038db3
8b0de593
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
openedx/core/djangoapps/user_api/accounts/__init__.py
+1
-5
1 addition, 5 deletions
openedx/core/djangoapps/user_api/accounts/__init__.py
with
1 addition
and
5 deletions
openedx/core/djangoapps/user_api/accounts/__init__.py
+
1
−
5
View file @
01191e34
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment