def ifchanged(parser, token):
    bits = token.contents.split()
    nodelist_true = parser.parse(('else', 'endifchanged'))
    token = parser.next_token()
    if token.contents == 'else':
        nodelist_false = parser.parse(('endifchanged',))
        parser.delete_first_token()
    else:
        nodelist_false = NodeList()
    return IfChangedNode(nodelist_true, nodelist_false, *bits[1:])
Returns whether there are active waiters.
dataset/ETHPy150Open dcramer/django-compositepks/django/template/defaulttags.py/ifchanged--crossover with--dataset/ETHPy150Open ganeti/ganeti/lib/locking.py/PipeCondition.has_waiting