From 46293546b60a98c1f371dac789ec79e915447278 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Thu, 2 Nov 2017 21:38:16 -0700 Subject: [PATCH] Add `json` to global template context just seems like a useful thing to have around... --- tailbone/subscribers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tailbone/subscribers.py b/tailbone/subscribers.py index 8694b421..df9e3078 100644 --- a/tailbone/subscribers.py +++ b/tailbone/subscribers.py @@ -27,6 +27,7 @@ Event Subscribers from __future__ import unicode_literals, absolute_import import six +import json import rattail from rattail.db import model @@ -82,6 +83,7 @@ def before_render(event): renderer_globals['tailbone'] = tailbone renderer_globals['enum'] = request.rattail_config.get_enum() renderer_globals['six'] = six + renderer_globals['json'] = json def add_inbox_count(event):