summaryrefslogtreecommitdiff
path: root/tests/admin_docs/views.py
diff options
context:
space:
mode:
authorPaul Donohue <git@PaulSD.com>2018-04-08 13:35:24 -0400
committerTim Graham <timograham@gmail.com>2018-04-12 13:28:29 -0400
commit979253fce9c0bb6ee484a5a786d477a47545d972 (patch)
treeb9229bf46da039bacee673dd9755c584e2be6c5c /tests/admin_docs/views.py
parent8f76939f54924b01b41d4242e71ca98eb35964f2 (diff)
[1.11.x] Fixed #29296 -- Fixed crashes in admindocs when a view is a callable object.
Backport of 33a0b7ac815588ed92dca215e153390af8bdbdda from master
Diffstat (limited to 'tests/admin_docs/views.py')
-rw-r--r--tests/admin_docs/views.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/admin_docs/views.py b/tests/admin_docs/views.py
index 31d253f7e2..21fe382bba 100644
--- a/tests/admin_docs/views.py
+++ b/tests/admin_docs/views.py
@@ -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()