mirror of
https://github.com/django/django.git
synced 2024-12-23 09:36:06 +00:00
91afc00513
- Fixed bug in get_callable() that caused resolve() to put a string in ResolverMatch.func. - Made ResolverMatch.url_name match the actual url name (or None). - Updated tests that used the string value in ResolverMatch.func, and added regression tests for this bug. - Corrected test urls whose dummy view paths caused failures (behavior that was previously masked by this bug).
6 lines
114 B
Python
Executable File
6 lines
114 B
Python
Executable File
from django.http import HttpResponse
|
|
|
|
|
|
def empty_view(request, *args, **kwargs):
|
|
return HttpResponse('')
|