Commits

Anonymous committed 5cbfff0

Improved pythonit.utils.views.render_with to handle non-standard returns.
(i.e. HttpStatusForbidden).

  • Participants
  • Parent commits d9187fd

Comments (0)

Files changed (1)

File pythonit/utils/views.py

         @wraps(f)
         def __render_with(request, *args, **kwargs):
             d = f(request, *args, **kwargs)
+            if not isinstance(d, dict):
+                return d
             return render_to_response(template, d, 
                 context_instance=RequestContext(request),
                 **tmpl_kw)