def handle_del(request, basket, line_id, **kwargs):
 return {u'ok': basket.delete_line(int(line_id))}

def handle_del ( request , basket , line_id , ** kwargs ) : return { u'ok' : basket . delete_line ( int ( line_id ) ) }
handle deleting a distinct order line from the basket given its unique line id .