Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
roomlist
Commits
44ac6dff
Commit
44ac6dff
authored
Feb 09, 2015
by
Jason D Yeomans
Browse files
create student in callback
parent
b7f08891
Changes
1
Hide whitespace changes
Inline
Side-by-side
roomlist/accounts/cas_callbacks.py
View file @
44ac6dff
...
...
@@ -9,7 +9,7 @@ def create_user(tree):
if
user_created
:
user
.
email
=
"%s@%s"
%
(
username
,
settings
.
ORGANIZATION_EMAIL_DOMAIN
)
user
.
save
()
new_student
=
Student
.
objects
.
create
()
new_student
.
user
=
user
new_student
=
Student
.
objects
.
create
(
user
=
user
)
new_student
.
save
()
print
(
"Created user %s!"
%
username
)
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