From 1345d5d24f5d12a73af39cd7b41898bc5d25fbf1 Mon Sep 17 00:00:00 2001 From: Karl Hobley Date: Sat, 3 Oct 2015 20:24:13 +0100 Subject: [PATCH] Allow "_" GET parameter in the API. Fixes #1671 Used by jQuery for cache-busting --- wagtail/contrib/wagtailapi/endpoints.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wagtail/contrib/wagtailapi/endpoints.py b/wagtail/contrib/wagtailapi/endpoints.py index c6a2489fcc..26846d598b 100644 --- a/wagtail/contrib/wagtailapi/endpoints.py +++ b/wagtail/contrib/wagtailapi/endpoints.py @@ -37,6 +37,9 @@ class BaseAPIEndpoint(GenericViewSet): 'fields', 'order', 'search', + + # Used by jQuery for cache-busting. See #1671 + '_', ]) extra_api_fields = [] name = None # Set on subclass.