From 1de67be788603405de8dfe3f6c478739b6ac0c80 Mon Sep 17 00:00:00 2001 From: Brian Wilson Date: Wed, 16 Jan 2013 15:43:15 -0500 Subject: [PATCH] clear upload_status if user makes changes to TestCenterUser or TestCenterRegistration (so the change is pending, rather than rejected) --- common/djangoapps/student/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/djangoapps/student/models.py b/common/djangoapps/student/models.py index 6506e8b638..7b4a5fb9be 100644 --- a/common/djangoapps/student/models.py +++ b/common/djangoapps/student/models.py @@ -271,6 +271,7 @@ class TestCenterUserForm(ModelForm): new_user = self.save(commit=False) # create additional values here: new_user.user_updated_at = datetime.utcnow() + new_user.upload_status = '' new_user.save() log.info("Updated demographic information for user's test center exam registration: username \"{}\" ".format(new_user.user.username)) @@ -533,6 +534,7 @@ class TestCenterRegistrationForm(ModelForm): registration = self.save(commit=False) # create additional values here: registration.user_updated_at = datetime.utcnow() + registration.upload_status = '' registration.save() log.info("Updated registration information for user's test center exam registration: username \"{}\" course \"{}\", examcode \"{}\"".format(registration.testcenter_user.user.username, registration.course_id, registration.exam_series_code))