From 4dbb104136c5f52b554d7a718f423fae5e155f01 Mon Sep 17 00:00:00 2001 From: Greg Price Date: Thu, 1 May 2014 16:48:53 -0400 Subject: [PATCH] Remove email field from CS client user object This requires cs_comments_service commit 1d50176. --- lms/lib/comment_client/user.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lms/lib/comment_client/user.py b/lms/lib/comment_client/user.py index fdea00062f..6d7f44f916 100644 --- a/lms/lib/comment_client/user.py +++ b/lms/lib/comment_client/user.py @@ -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}