Commit f3eeb156 authored by Daniel W Bond's avatar Daniel W Bond
Browse files

added support to store user's peoplefinder name for later reference

parent a0dc5bd5
......@@ -120,6 +120,12 @@ def create_user(tree):
# also Major.DoesNotExist Error, but the handling for both is the same...
print("Unable to add student's major.")
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.")
print("Unable to add student's original name for later reference.")
new_student.original_major = major_obj
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment