Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
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
edx
edx-platform
Commits
4155f9fe
Commit
4155f9fe
authored
Jul 03, 2013
by
David Baumgold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed unused user_author_string function
parent
359cbbb4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
14 deletions
+0
-14
cms/djangoapps/contentstore/views/user.py
+0
-14
No files found.
cms/djangoapps/contentstore/views/user.py
View file @
4155f9fe
...
...
@@ -15,20 +15,6 @@ from auth.authz import get_user_by_email, add_user_to_course_group, remove_user_
from
.access
import
has_access
def
user_author_string
(
user
):
'''Get an author string for commits by this user. Format:
first last <email@email.com>.
If the first and last names are blank, uses the username instead.
Assumes that the email is not blank.
'''
if
not
user
.
first_name
and
not
user
.
last_name
:
name
=
user
.
username
else
:
name
=
"{0} {1}"
.
format
(
user
.
first_name
,
user
.
last_name
)
return
"{name} <{email}>"
.
format
(
name
=
name
,
email
=
user
.
email
)
@login_required
@ensure_csrf_cookie
def
index
(
request
):
...
...
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