Call another template tag which uses @register.inclusion_tag
I'm using a custom template tag which calls another one, depending on which hour it is.

    @register.simple_tag(takes_context=True)
    def my_custom_template_tag(context):
    """
    """
    now = datetime.now()

    # if the current hour:minute is less than
    # the publication switch settings defined hour
    if now.strftime('%H:%M') <= settings.PUBLICATION_SWITCH_TIME:
        print now.strftime('%H:%M')
        return my_other_template_tag(context)
    else:
        pass

    @register.inclusion_tag('my_other_template_tag_template_path', takes_context=True)
    def my_other_template_tag(context):
    """
    
    """
    return {
        'foo'
    }

the problem is, my_custom_template_tag seems to ignore the called "my_other_template_tag" @inclusion_tag. Is there a way to achieve this, while keeping using the @inclusion_tag ??

Thanks!
Call another template tag which uses @register.inclusion_tag
===

I'm using a custom template tag which calls another one, depending on which hour it is.

    @register.simple_tag(takes_context=True)
    def my_custom_template_tag(context):
    """
    """
    now = datetime.now()

    # if the current hour:minute is less than
    # the publication switch settings defined hour
    if now.strftime('%H:%M') <= settings.PUBLICATION_SWITCH_TIME:
        print now.strftime('%H:%M')
        return my_other_template_tag(context)
    else:
        pass

    @register.inclusion_tag('my_other_template_tag_template_path', takes_context=True)
    def my_other_template_tag(context):
    """
    
    """
    return {
        'foo'
    }

the problem is, my_custom_template_tag seems to ignore the called "my_other_template_tag" @inclusion_tag. Is there a way to achieve this, while keeping using the @inclusion_tag ??

Thanks!