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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user