From ce76fbfc5a14b0dbfdf28badb4bff874c8286d48 Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Sun, 10 Mar 2013 23:24:34 +0100 Subject: Fixed #20019 -- Ensured HttpRequest.resolver_match always exists. Obviously it isn't set until the URL is resolved. --- django/http/request.py | 1 + 1 file changed, 1 insertion(+) (limited to 'django') 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): -- cgit v1.3