Fix a Django 1.6 TreeEditor bug