diff --git a/lms/djangoapps/verify_student/views.py b/lms/djangoapps/verify_student/views.py index a8e6304fb2..1c66aa2bed 100644 --- a/lms/djangoapps/verify_student/views.py +++ b/lms/djangoapps/verify_student/views.py @@ -101,9 +101,10 @@ def create_order(request): """ Submit PhotoVerification and create a new Order for this verified cert """ - attempt = SoftwareSecurePhotoVerification(user=request.user) - attempt.status = "ready" - attempt.save() + if not SoftwareSecurePhotoVerification.user_has_valid_or_pending(request.user): + attempt = SoftwareSecurePhotoVerification(user=request.user) + attempt.status = "ready" + attempt.save() course_id = request.POST['course_id'] donation_for_course = request.session.get('donation_for_course', {})