def save(self, *args, **kwargs):

        super(Index, self).save(*args, **kwargs)
        IndexTemplateNode.objects.get_or_create(parent=None, index=self)
Automatically create the root index template node
dataset/ETHPy150Open mayan-edms/mayan-edms/mayan/apps/document_indexing/models.py/Index.save