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
ce7e625c
Commit
ce7e625c
authored
Jul 14, 2014
by
asadiqbal08
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update the UserSignUpSource model
parent
9cf082e7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
2 deletions
+2
-2
common/djangoapps/student/migrations/0040_auto__del_field_usersignupsource_user_id__add_field_usersignupsource_u.py
+0
-0
common/djangoapps/student/models.py
+1
-1
common/djangoapps/student/views.py
+1
-1
No files found.
common/djangoapps/student/migrations/0040_auto__del_field_usersignupsource_user_id__add_field_usersignupsource_u.py
0 → 100644
View file @
ce7e625c
This diff is collapsed.
Click to expand it.
common/djangoapps/student/models.py
View file @
ce7e625c
...
...
@@ -276,7 +276,7 @@ class UserSignupSource(models.Model):
This table contains information about users registering
via Micro-Sites
"""
user
_id
=
models
.
ForeignKey
(
User
,
db_index
=
True
)
user
=
models
.
ForeignKey
(
User
,
db_index
=
True
)
site
=
models
.
CharField
(
max_length
=
255
,
db_index
=
True
)
...
...
common/djangoapps/student/views.py
View file @
ce7e625c
...
...
@@ -1034,7 +1034,7 @@ def user_signup_handler(sender, **kwargs): # pylint: disable=W0613
if
'created'
in
kwargs
and
kwargs
[
'created'
]:
site
=
microsite
.
get_value
(
'SITE_NAME'
)
if
site
:
user_signup_source
=
UserSignupSource
(
user
_id
=
kwargs
[
'instance'
],
site
=
site
)
user_signup_source
=
UserSignupSource
(
user
=
kwargs
[
'instance'
],
site
=
site
)
user_signup_source
.
save
()
log
.
info
(
u'user {} originated from a white labeled "Microsite"'
.
format
(
kwargs
[
'instance'
]
.
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