예제 #1
0
 def delete(self, request, pk, *a, **kw):
     app = self.get_object()
     handler = ReviewApp(request, app, app.latest_version, ())
     handler.set_data(request.query_params)
     result = handler.process_clear_rereview()
     return Response({'score': result})
예제 #2
0
 def delete(self, request, pk, *a, **kw):
     app = self.get_object()
     handler = ReviewApp(request, app, app.latest_version, ())
     handler.set_data(request.query_params)
     handler.process_clear_escalation()
     return Response()
예제 #3
0
 def _do_post(self, request, pk):
     app = self.get_object()
     handler = ReviewApp(request, app, app.latest_version, ())
     handler.set_data(request.data)
     return getattr(handler, "process_" + self.verb)()
예제 #4
0
 def delete(self, request, pk, *a, **kw):
     app = self.get_object()
     handler = ReviewApp(request, app, app.latest_version, ())
     handler.set_data(request.query_params)
     result = handler.process_clear_rereview()
     return Response({'score': result})
예제 #5
0
 def delete(self, request, pk, *a, **kw):
     app = self.get_object()
     handler = ReviewApp(request, app, app.latest_version, ())
     handler.set_data(request.query_params)
     handler.process_clear_escalation()
     return Response()
예제 #6
0
 def _do_post(self, request, pk):
     app = self.get_object()
     handler = ReviewApp(request, app, app.latest_version, ())
     handler.set_data(request.data)
     return getattr(handler, "process_" + self.verb)()