Add the 'X-Requested-With'='XMLHttpRequest' to request parameters to satisfy the django request.is_ajax() method and dynamically replace the request type in the map service.