0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-28 08:48:04 +01:00

Allow "format" GET parameter

Used in the browsable API to allow the user to explicitly ask for JSON format (eg ?format=json)
This commit is contained in:
Karl Hobley 2015-10-03 20:24:13 +01:00 committed by Matt Westcott
parent 1e73eb9419
commit 95f5c16cee

View File

@ -41,6 +41,9 @@ class BaseAPIEndpoint(GenericViewSet):
# Used by jQuery for cache-busting. See #1671
'_',
# Required by BrowsableAPIRenderer
'format',
])
extra_api_fields = []
name = None # Set on subclass.