0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-30 01:46:24 +01:00

Allow "_" GET parameter in the API. Fixes #1671

Used by jQuery for cache-busting
This commit is contained in:
Karl Hobley 2015-10-03 20:24:13 +01:00
parent deee02e4d7
commit 1345d5d24f

View File

@ -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.