1
0
mirror of https://github.com/django/django.git synced 2025-10-28 16:16:12 +00:00

Removed default empty content argument from HttpResponse calls.

This commit is contained in:
Jon Dufresne
2019-02-09 13:27:32 -08:00
committed by Tim Graham
parent 959d0c078a
commit c492fdfd24
9 changed files with 15 additions and 15 deletions

View File

@@ -21,7 +21,7 @@ def no_template_view(request):
def staff_only_view(request):
"A view that can only be visited by staff. Non staff members get an exception"
if request.user.is_staff:
return HttpResponse('')
return HttpResponse()
else:
raise CustomTestException()