@ajax_required
@require_http_methods(['POST', 'DELETE'])
def manage_suggestion(request, uid, sugg_id, **kwargs_):
 if (request.method == 'DELETE'):
  return reject_suggestion(request, uid, sugg_id)
 elif (request.method == 'POST'):
  return accept_suggestion(request, uid, sugg_id)

@ ajax_required @ require_http_methods ( [ 'POST' , 'DELETE' ] ) def manage_suggestion ( request , uid , sugg_id , ** kwargs_ ) : if ( request . method == 'DELETE' ) : return reject_suggestion ( request , uid , sugg_id ) elif ( request . method == 'POST' ) : return accept_suggestion ( request , uid , sugg_id )
dispatches the suggestion action according to the http verb .