summaryrefslogtreecommitdiff
path: root/django/http
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2013-03-10 23:24:34 +0100
committerAymeric Augustin <aymeric.augustin@m4x.org>2013-03-10 23:28:19 +0100
commitce76fbfc5a14b0dbfdf28badb4bff874c8286d48 (patch)
tree5c3e68077efd10561f198668801d605039a3d82d /django/http
parent7fca4416c7f7ce66d528f0d1ad829cf3b8290b89 (diff)
Fixed #20019 -- Ensured HttpRequest.resolver_match always exists.
Obviously it isn't set until the URL is resolved.
Diffstat (limited to 'django/http')
-rw-r--r--django/http/request.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/django/http/request.py b/django/http/request.py
index 2c19e4ee8c..ad18706e1e 100644
--- a/django/http/request.py
+++ b/django/http/request.py
@@ -44,6 +44,7 @@ class HttpRequest(object):
self.path = ''
self.path_info = ''
self.method = None
+ self.resolver_match = None
self._post_parse_error = False
def __repr__(self):