diff options
| author | Nik Nyby <nnyby@columbia.edu> | 2015-02-09 22:03:29 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-02-12 08:04:30 -0500 |
| commit | 34ccb3cc038ac30b13a7243a3dbd9366c1119746 (patch) | |
| tree | 0f24d4ddbae15670e093304ce9e8f9ff3dbf8831 | |
| parent | 0f7f5bc9e7a94ab91c2b3db29ef7cf000eff593f (diff) | |
Subclassed template.Node instead of Node for consistency.
| -rw-r--r-- | django/templatetags/static.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/django/templatetags/static.py b/django/templatetags/static.py index e3a23fbc5a..58aaf8f423 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( |
