Skip to content

Commit 8d03774

Browse files
author
Myth
committed
rename query parameter from to format
1 parent 8e63a73 commit 8d03774

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

django_api_log/views.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def view_api_response(request, log_id):
208208
return JsonResponse({u'detail': u'log id does not exist'})
209209

210210
format_ = request.GET.get('format', '')
211-
if format_ == 'format':
211+
if format_ == 'django':
212212
response_body = log.django_error_page if log.django_error_page else log.response_body
213213
else:
214214
response_body = log.response_body

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name='django_api_log',
5-
version='0.2.2',
5+
version='0.2.3',
66
packages=['django_api_log', 'django_api_log.migrations'],
77
url='https://github.com/MythRen/django-api-log',
88
license='BSD',

0 commit comments

Comments
 (0)