mirror of
https://github.com/django/django.git
synced 2025-07-19 17:19:12 +00:00
[1.9.x] Fixed typo in django/middleware/common.py docstring.
Backport of 182f98c4c77dcb0262360438a1ab01a80684a7a4 from master
This commit is contained in:
parent
58723722e9
commit
2d83063a20
@ -85,7 +85,7 @@ class CommonMiddleware(object):
|
||||
Return the full path of the request with a trailing slash appended.
|
||||
|
||||
Raise a RuntimeError if settings.DEBUG is True and request.method is
|
||||
GET, PUT, or PATCH.
|
||||
POST, PUT, or PATCH.
|
||||
"""
|
||||
new_path = request.get_full_path(force_append_slash=True)
|
||||
if settings.DEBUG and request.method in ('POST', 'PUT', 'PATCH'):
|
||||
|
Loading…
x
Reference in New Issue
Block a user