Commit 6be60b80 authored by Daniel W Bond's avatar Daniel W Bond
Browse files

fixed peoplefinder callback finallygit pull origin master @yeomansiii

parent b677357a
...@@ -28,12 +28,19 @@ def create_user(tree): ...@@ -28,12 +28,19 @@ def create_user(tree):
if user_created: if user_created:
user.email = "%s@%s" % (username, settings.ORGANIZATION_EMAIL_DOMAIN) user.email = "%s@%s" % (username, settings.ORGANIZATION_EMAIL_DOMAIN)
# print "hello" print "hello"
# name_list = pfinfo(str(username)) name_list = pfinfo(str(username))
# print "world" print name_list, "name_list"
# user.first_name = name_list[1].rstrip() first_name = name_list[1].lstrip().split(' ')
# print "something" if len(first_name) > 1:
# user.last_name = name_list[0] no_mi = first_name[:-1]
user.first_name = ' '.join(no_mi)
else:
user.first_name = ' '.join(first_name)
last_name = name_list[0]
user.last_name = name_list[0]
print "world"
user.save() user.save()
new_student = Student.objects.create(user=user) new_student = Student.objects.create(user=user)
new_student.save() new_student.save()
......
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