I try simple exsample from here http://www.feinheit.ch/media/labs/feincms/admin.html'
models.py:
class Locations(MPTTModel):
title = models.CharField(max_length=100)
parent = TreeForeignKey('self', null=True, blank=True, related_name='children')
def __unicode__(self):
return self.title
class Meta:
ordering = ['tree_id', 'lft']
admin.py:
class LocationsAdmin(tree_editor.TreeEditor):
pass
admin.site.register(Locations, LocationsAdmin)
But my model in the admin interface I can only move, but not cut, or create child. Like shown in the screenshot below: http://www.feinheit.ch/media/labs/feincms/_images/tree_editor.png. How do it right?