Dropped obsolete mimetype kwarg in csrf test view
This commit is contained in:
parent
45304e444e
commit
9d5a487f33
|
@ -9,7 +9,7 @@ def post_form_view(request):
|
||||||
"""Return a POST form (without a token)."""
|
"""Return a POST form (without a token)."""
|
||||||
return HttpResponse(content="""
|
return HttpResponse(content="""
|
||||||
<html><body><h1>\u00a1Unicode!<form method="post"><input type="text"></form></body></html>
|
<html><body><h1>\u00a1Unicode!<form method="post"><input type="text"></form></body></html>
|
||||||
""", mimetype='text/html')
|
""")
|
||||||
|
|
||||||
|
|
||||||
@ensure_csrf_cookie
|
@ensure_csrf_cookie
|
||||||
|
|
Loading…
Reference in New Issue