Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
jumpserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
jumpserver
Commits
ceb8b2f5
Commit
ceb8b2f5
authored
Mar 22, 2019
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] 修改翻译
parent
877781a6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
1 deletion
+4
-1
django.mo
apps/locale/zh/LC_MESSAGES/django.mo
+0
-0
django.po
apps/locale/zh/LC_MESSAGES/django.po
+0
-0
utils.py
apps/settings/utils.py
+4
-1
No files found.
apps/locale/zh/LC_MESSAGES/django.mo
View file @
ceb8b2f5
No preview for this file type
apps/locale/zh/LC_MESSAGES/django.po
View file @
ceb8b2f5
This diff is collapsed.
Click to expand it.
apps/settings/utils.py
View file @
ceb8b2f5
...
...
@@ -123,7 +123,10 @@ def save(users, exist):
def
set_default_item
(
item
):
item
[
'source'
]
=
'ldap'
if
not
item
.
get
(
'email'
,
''
):
item
[
'email'
]
=
item
[
'username'
]
+
'@'
+
item
[
'username'
]
+
'.com'
if
'@'
in
item
[
'username'
]:
item
[
'email'
]
=
item
[
'username'
]
else
:
item
[
'email'
]
=
item
[
'username'
]
+
'@'
+
settings
.
EMAIL_SUFFIX
if
'is_imported'
in
item
.
keys
():
item
.
pop
(
'is_imported'
)
return
item
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment