1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #15695 -- Added ResolverMatch to the request object.

This commit is contained in:
Florian Apolloner
2012-09-27 15:06:58 +02:00
parent 44767f2caf
commit b946db5241
6 changed files with 29 additions and 3 deletions

View File

@@ -19,6 +19,11 @@ def defaults_view(request, arg1, arg2):
def erroneous_view(request):
import non_existent
def pass_resolver_match_view(request, *args, **kwargs):
response = HttpResponse('')
response.resolver_match = request.resolver_match
return response
uncallable = "Can I be a view? Pleeeease?"
class ViewClass(object):