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
f32e2892
Commit
f32e2892
authored
May 05, 2014
by
Greg Price
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3569 from edx/gprice/remove-cs-email
Remove email field from CS client user object
parents
a2f88248
4dbb1041
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
lms/lib/comment_client/user.py
+3
-4
No files found.
lms/lib/comment_client/user.py
View file @
f32e2892
...
...
@@ -6,14 +6,14 @@ import settings
class
User
(
models
.
Model
):
accessible_fields
=
[
'username'
,
'
email'
,
'
follower_ids'
,
'upvoted_ids'
,
'downvoted_ids'
,
accessible_fields
=
[
'username'
,
'follower_ids'
,
'upvoted_ids'
,
'downvoted_ids'
,
'id'
,
'external_id'
,
'subscribed_user_ids'
,
'children'
,
'course_id'
,
'subscribed_thread_ids'
,
'subscribed_commentable_ids'
,
'subscribed_course_ids'
,
'threads_count'
,
'comments_count'
,
'default_sort_key'
]
updatable_fields
=
[
'username'
,
'external_id'
,
'
email'
,
'
default_sort_key'
]
updatable_fields
=
[
'username'
,
'external_id'
,
'default_sort_key'
]
initializable_fields
=
updatable_fields
metric_tag_fields
=
[
'course_id'
]
...
...
@@ -26,8 +26,7 @@ class User(models.Model):
def
from_django_user
(
cls
,
user
):
return
cls
(
id
=
str
(
user
.
id
),
external_id
=
str
(
user
.
id
),
username
=
user
.
username
,
email
=
user
.
email
)
username
=
user
.
username
)
def
follow
(
self
,
source
):
params
=
{
'source_type'
:
source
.
type
,
'source_id'
:
source
.
id
}
...
...
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