X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/3d786c6d8c1bd3685ac328c7f4b811c13ea60e1a..61b73fe068172f02d6c47e2b5387161919ec9618:/philo/templatetags/nodes.py diff --git a/philo/templatetags/nodes.py b/philo/templatetags/nodes.py index 189fdd5..52da236 100644 --- a/philo/templatetags/nodes.py +++ b/philo/templatetags/nodes.py @@ -39,7 +39,7 @@ class NodeURLNode(template.Node): if self.with_obj is None and self.view_name is None: url = node.get_absolute_url() else: - if not node.view.accepts_subpath: + if not node.accepts_subpath: return settings.TEMPLATE_STRING_IF_INVALID if self.with_obj is not None: