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})
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()
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)()