wiki: Fix broken json template.

This commit is contained in:
Andre D
2013-01-07 17:09:58 -05:00
committed by Max Goodman
parent 8568250a81
commit bb3ceb6a8e

View File

@@ -584,7 +584,7 @@ class TrafficJsonTemplate(JsonTemplate):
class WikiJsonTemplate(JsonTemplate):
def render(self, thing, *a, **kw):
try:
content = thing.content
content = thing.inner_content
except AttributeError:
content = thing.listing
return ObjectTemplate(content.render() if thing else {})