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
4af79d6f
Commit
4af79d6f
authored
Apr 21, 2015
by
cahrens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't event first_name and last_name.
TNL-2044
parent
d50ed75f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletions
+10
-1
common/djangoapps/student/models.py
+1
-1
common/djangoapps/student/tests/test_events.py
+9
-0
No files found.
common/djangoapps/student/models.py
View file @
4af79d6f
...
...
@@ -374,7 +374,7 @@ def user_post_save_callback(sender, **kwargs):
user
,
user
,
sender
.
_meta
.
db_table
,
excluded_fields
=
[
'last_login'
],
excluded_fields
=
[
'last_login'
,
'first_name'
,
'last_name'
],
hidden_fields
=
[
'password'
]
)
...
...
common/djangoapps/student/tests/test_events.py
View file @
4af79d6f
...
...
@@ -146,3 +146,12 @@ class TestUserEvents(UserSettingsEventTestMixin, TestCase):
with
self
.
assertRaises
(
IntegrityError
):
self
.
user
.
save
()
self
.
assert_no_events_were_emitted
()
def
test_no_first_and_last_name_events
(
self
):
"""
Verify that first_name and last_name events are not emitted.
"""
self
.
user
.
first_name
=
"Donald"
self
.
user
.
last_name
=
"Duck"
self
.
user
.
save
()
self
.
assert_no_events_were_emitted
()
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