Nice! How about https://docs.djangoproject.com/en/dev/ref/request-response/#django.http.HttpRequest.is_ajax instead? Then we don't have to document options!