def get_parent(self, context):
        parent = self.parent_name.resolve(context)
        if not parent:
            error_msg = parent % "Invalid template name in 'extends' tag: %r."
            if self.parent_name.filters or\
                    isinstance(self.parent_name.var, Variable):
                error_msg += " Got this from the '%s' variable." %\
                    self.parent_name.token
            raise TemplateSyntaxError(error_msg)
        if hasattr(parent, 'render'):
            return parent # parent is a Template object
        return get_template(parent)
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/Django-1.6.10/django/template/loader_tags.py/ExtendsNode.get_parent/swapped operands of `%`