1
0
mirror of https://github.com/django/django.git synced 2025-10-23 21:59:11 +00:00

Fixed #24707 -- Improved error reporting for explicitly imported uncallable views

This commit is contained in:
Harry
2015-04-24 20:51:26 +01:00
committed by Markus Holtermann
parent 86aaffa5a3
commit 40768ec29d
4 changed files with 12 additions and 4 deletions

View File

@@ -35,7 +35,7 @@ def pass_resolver_match_view(request, *args, **kwargs):
response.resolver_match = request.resolver_match
return response
uncallable = "Can I be a view? Pleeeease?"
uncallable = None # neither a callable nor a string
class ViewClass(object):