Instantiate a Template instance when rendering custom webhook content.
Review Request #8702 — Created Jan. 31, 2017 and submitted
We use Django's template language for allowing people to render custom webhook
content, but we deliberately limit the tags and filters that people are allowed
to use. Previously we just instantiated theParserand told the resulting
nodelist to render, but in Django 1.8 there's some code that relies on having a
Templateobject for state. This change creates aTemplateand then replaces
its nodelist with our parsed version.
Ran unit tests with Django 1.6 and 1.8.
Tool: Pyflakes Processed Files: reviewboard/notifications/webhooks.py Tool: PEP8 Style Checker Processed Files: reviewboard/notifications/webhooks.py