From 34ccb3cc038ac30b13a7243a3dbd9366c1119746 Mon Sep 17 00:00:00 2001 From: Nik Nyby Date: Mon, 9 Feb 2015 22:03:29 -0500 Subject: [PATCH] Subclassed template.Node instead of Node for consistency. --- django/templatetags/static.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/django/templatetags/static.py b/django/templatetags/static.py index e3a23fbc5af..58aaf8f4235 100644 --- a/django/templatetags/static.py +++ b/django/templatetags/static.py @@ -1,5 +1,4 @@ from django import template -from django.template.base import Node from django.utils.encoding import iri_to_uri from django.utils.six.moves.urllib.parse import urljoin @@ -90,7 +89,7 @@ def get_media_prefix(parser, token): return PrefixNode.handle_token(parser, token, "MEDIA_URL") -class StaticNode(Node): +class StaticNode(template.Node): def __init__(self, varname=None, path=None): if path is None: raise template.TemplateSyntaxError(