Fixed #29296 -- Fixed crashes in admindocs when a view is a callable object.

This commit is contained in:
Paul Donohue 2018-04-08 13:35:24 -04:00 committed by Tim Graham
parent ee17bb8a67
commit 33a0b7ac81
10 changed files with 37 additions and 7 deletions

View file

@ -13,3 +13,8 @@ def xview(request):
class XViewClass(View):
def get(self, request):
return HttpResponse()
class XViewCallableObject(View):
def __call__(self, request):
return HttpResponse()