Commit 739c8acc authored by Daniel W Bond's avatar Daniel W Bond
Browse files

just don't change the majors on exception-- don't clear them out

parent b512e556
...@@ -246,7 +246,8 @@ class UpdateStudent(LoginRequiredMixin, FormValidMessageMixin, FormView): ...@@ -246,7 +246,8 @@ class UpdateStudent(LoginRequiredMixin, FormValidMessageMixin, FormView):
if form_major not in me.major.all(): if form_major not in me.major.all():
me.major.add(form_major) me.major.add(form_major)
except: except:
me.major = None # don't change majors
pass
me.user.first_name = form.data['first_name'] me.user.first_name = form.data['first_name']
me.user.last_name = form.data['last_name'] me.user.last_name = form.data['last_name']
......
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