mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-14 10:13:13 +00:00
Allow "_" GET parameter in the API. Fixes #1671
Used by jQuery for cache-busting
This commit is contained in:
parent
deee02e4d7
commit
1345d5d24f
1 changed files with 3 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue