mirror of
https://github.com/django/django.git
synced 2025-12-10 03:10:10 +00:00
Removed default empty content argument from HttpResponse calls.
This commit is contained in:
parent
959d0c078a
commit
c492fdfd24
9 changed files with 15 additions and 15 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue