Index: /WAeUP_SRP/trunk/WAeUPTool.py
===================================================================
--- /WAeUP_SRP/trunk/WAeUPTool.py	(revision 1964)
+++ /WAeUP_SRP/trunk/WAeUPTool.py	(revision 1965)
@@ -894,4 +894,10 @@
                 return '',"no student with matric_no %s" % matric_no
             editable_keys.remove('matric_no')
+
+        # included only to change wf state from admitted to returning
+        if res[0].review_state != 'admitted':
+            return '%s' % res[0].id ,"student is not in state admitted"
+        # end inclusion    
+
         sid = res[0].id
         student_obj = getattr(students_folder,sid)
