\r
def render(template=None, tab=None, tab_title='', weight=500, tabbed=True):\r
def decorator(func):\r
- def decorated(request, *args, **kwargs):\r
+ def decorated(func, request, *args, **kwargs):\r
context = func(request, *args, **kwargs)\r
\r
if isinstance(context, HttpResponse):\r
ui.register(ui.PAGE_TOP_TABS,\r
ui.PageTab(tab, tab_title, lambda: reverse(func.__name__), weight=weight))\r
\r
- return decorated\r
+ return decorate.withfn(decorated)(func)\r
\r
return decorator\r
\r