@@ -253,7 +254,7 @@ class TestCenterUserForm(ModelForm):
defupdate_and_save(self):
new_user=self.save(commit=False)
# create additional values here:
new_user.user_updated_at=datetime.utcnow()
new_user.user_updated_at=datetime.now(UTC)
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))
...
...
@@ -555,7 +556,7 @@ class TestCenterRegistrationForm(ModelForm):
defupdate_and_save(self):
registration=self.save(commit=False)
# create additional values here:
registration.user_updated_at=datetime.utcnow()
registration.user_updated_at=datetime.now(UTC)
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))
...
...
@@ -597,7 +598,7 @@ def unique_id_for_user(user):
returnh.hexdigest()
# # TODO: Should be renamed to generic UserGroup, and possibly
# TODO: Should be renamed to generic UserGroup, and possibly