diff options
| author | Paul Donohue <git@PaulSD.com> | 2018-04-08 13:35:24 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2018-04-12 13:11:53 -0400 |
| commit | 1ed31efb8753f6c4fd263033ddebc2f008e43a68 (patch) | |
| tree | 085ef498db188ea54a98a4a0ccfe3d8a8ad4976a /tests/admin_docs/views.py | |
| parent | d5018abf1c4e3c68f1a825d05eb9035325707e16 (diff) | |
[2.0.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.py | 5 |
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() |
