diff options
| author | Joe Arthur <joe92v2@gmail.com> | 2017-10-16 11:37:14 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-10-16 10:35:38 -0400 |
| commit | 04a92ebe494435f39e72aa0bd954472dcb6e28ae (patch) | |
| tree | 31a1057526b0d58c045d67f19209e129e17f4916 | |
| parent | 325d3027dbd4fdb92a926621f2d8852f072ebcb6 (diff) | |
[2.0.x] Fixed typo in MessageMiddleware.process_response() docstring.
Backport of 61a6245dc5c9ad8423dcceb47fdeff167c838542 from master
| -rw-r--r-- | django/contrib/messages/middleware.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/django/contrib/messages/middleware.py b/django/contrib/messages/middleware.py index 6836a288cb..d5b787cee7 100644 --- a/django/contrib/messages/middleware.py +++ b/django/contrib/messages/middleware.py @@ -15,8 +15,7 @@ class MessageMiddleware(MiddlewareMixin): """ Update the storage backend (i.e., save the messages). - If not all messages could not be stored and ``DEBUG`` is ``True``, - raise ValueError. + Raise ValueError if not all messages could be stored and DEBUG is True. """ # A higher middleware layer may return a request which does not contain # messages storage, so make no assumption that it will be there. |
