Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
roomlist
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
23
Issues
23
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SRCT
roomlist
Commits
f3eeb156
Commit
f3eeb156
authored
Nov 11, 2015
by
Daniel W Bond
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added support to store user's peoplefinder name for later reference
parent
a0dc5bd5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
roomlist/accounts/cas_callbacks.py
roomlist/accounts/cas_callbacks.py
+6
-0
roomlist/accounts/models.py
roomlist/accounts/models.py
+2
-0
No files found.
roomlist/accounts/cas_callbacks.py
View file @
f3eeb156
...
...
@@ -120,6 +120,12 @@ def create_user(tree):
# also Major.DoesNotExist Error, but the handling for both is the same...
except
:
print
(
"Unable to add student's major."
)
try
:
new_student
.
original_first_name
=
info_name
[
0
]
new_student
.
original_last_name
=
info_name
[
1
]
print
(
"Added student's original name for later reference."
)
except
:
print
(
"Unable to add student's original name for later reference."
)
try
:
new_student
.
original_major
=
major_obj
new_student
.
save
()
...
...
roomlist/accounts/models.py
View file @
f3eeb156
...
...
@@ -142,6 +142,8 @@ class Student(TimeStampedModel):
# from when first logged in through peoplefinder, stored for later
original_major
=
models
.
ForeignKey
(
'Major'
,
related_name
=
'original_major'
,
null
=
True
,
blank
=
True
)
original_first_name
=
models
.
CharField
(
max_length
=
100
,
blank
=
True
)
original_last_name
=
models
.
CharField
(
max_length
=
100
,
blank
=
True
)
# social media accounts
...
...
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