Signed-off-by: Stephen Finucane <stephenfinuc...@hotmail.com> --- patchwork/compat.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/patchwork/compat.py b/patchwork/compat.py index c8bade6..5c8ca23 100644 --- a/patchwork/compat.py +++ b/patchwork/compat.py @@ -30,9 +30,10 @@ import django # https://docs.djangoproject.com/en/dev/releases/1.8/ if django.VERSION >= (1, 8): - from django.template.loader import render_to_string + from django.template.loader import render_to_string # noqa else: - from django.template import loader, RequestContext + from django.template import loader # noqa + from django.template import RequestContext # noqa def render_to_string(template_name, context=None, request=None): context_instance = RequestContext(request) if request else None -- 2.7.4 _______________________________________________ Patchwork mailing list Patchwork@lists.ozlabs.org https://lists.ozlabs.org/listinfo/patchwork