Exemplo n.º 1
0
    def getResponse(self, request, args):

        if args.get('orig_id'):
            result = ModelBroadcastEvent.reset(args.get('orig_id'))
            return Response(result)
        else:
            raise Http404
Exemplo n.º 2
0
 def getResponse(self, request, args):
     """
     Get the Post
     """
     if args.get('orig_id') and args.get('replace_id'):
         result = ModelBroadcastEvent.replace(args.get('orig_id'), args.get('replace_id'))
         return Response(result)
     else:
         raise Http404