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

Used by jQuery for cache-busting
pull/1791/head
Karl Hobley 2015-10-03 20:24:13 +01:00
rodzic deee02e4d7
commit 1345d5d24f
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

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