Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception Value: Caught AttributeError while rendering: 'BlockWizard' object has no attribute '__name__' #10

Open
stodge opened this issue Jun 13, 2011 · 0 comments

Comments

@stodge
Copy link

stodge commented Jun 13, 2011

I'm getting an error from the Django Debug Toolbar with my wizard. I'm not saying that Django Merlin is at fault; but is my wizard missing something? I can avoid the problem if I add this to my wizard:

    def __name__(self):
        return self.__class__.__name__

Re: http://jeffbaier.com/blog/problem-with-django-form-wizards-and-django-debug-toolbar/

Thanks

File "/usr/lib/python2.7/site-packages/Django-1.3-py2.7.egg/django/core/handlers/base.py" in get_response
  178.                 response = middleware_method(request, response)
File "/usr/lib/python2.7/site-packages/django_debug_toolbar-0.8.5-py2.7.egg/debug_toolbar/middleware.py" in process_response
  110.                     smart_unicode(self.debug_toolbars[request].render_toolbar() + self.tag))
File "/usr/lib/python2.7/site-packages/django_debug_toolbar-0.8.5-py2.7.egg/debug_toolbar/toolbar/loader.py" in render_toolbar
  78.         return render_to_string('debug_toolbar/base.html', context)
File "/usr/lib/python2.7/site-packages/Django-1.3-py2.7.egg/django/template/loader.py" in render_to_string
  183.         return t.render(Context(dictionary))
File "/usr/lib/python2.7/site-packages/Django-1.3-py2.7.egg/django/template/base.py" in render
  123.             return self._render(context)
File "/usr/lib/python2.7/site-packages/Django-1.3-py2.7.egg/django/test/utils.py" in instrumented_test_render
  57.     return self.nodelist.render(context)
File "/usr/lib/python2.7/site-packages/Django-1.3-py2.7.egg/django/template/base.py" in render
  744.                 bits.append(self.render_node(node, context))
File "/usr/lib/python2.7/site-packages/Django-1.3-py2.7.egg/django/template/debug.py" in render_node
  73.             result = node.render(context)
File "/usr/lib/python2.7/site-packages/Django-1.3-py2.7.egg/django/template/defaulttags.py" in render
  227.                 nodelist.append(node.render(context))
File "/usr/lib/python2.7/site-packages/Django-1.3-py2.7.egg/django/template/defaulttags.py" in render
  311.             return self.nodelist_true.render(context)
File "/usr/lib/python2.7/site-packages/Django-1.3-py2.7.egg/django/template/base.py" in render
  744.                 bits.append(self.render_node(node, context))
File "/usr/lib/python2.7/site-packages/Django-1.3-py2.7.egg/django/template/debug.py" in render_node
  73.             result = node.render(context)
File "/usr/lib/python2.7/site-packages/Django-1.3-py2.7.egg/django/template/debug.py" in render
  90.             output = self.filter_expression.resolve(context)
File "/usr/lib/python2.7/site-packages/Django-1.3-py2.7.egg/django/template/base.py" in resolve
  510.                 obj = self.var.resolve(context)
File "/usr/lib/python2.7/site-packages/Django-1.3-py2.7.egg/django/template/base.py" in resolve
  653.             value = self._resolve_lookup(context)
File "/usr/lib/python2.7/site-packages/Django-1.3-py2.7.egg/django/template/base.py" in _resolve_lookup
  698.                             current = current()
File "/usr/lib/python2.7/site-packages/django_debug_toolbar-0.8.5-py2.7.egg/debug_toolbar/panels/request_vars.py" in content
  35.             'view_func': '%s.%s' % (self.view_func.__module__, self.view_func.__name__),

Exception Type: TemplateSyntaxError at /block/create-block
Exception Value: Caught AttributeError while rendering: 'BlockWizard' object has no attribute '__name__'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant