thank you for your awesome work on django-mptt. I got it up and
running very quickly. My model looks like this:
class Technology(MPTTModel):
name = models.CharField(max_length=150, blank=False)
parent = TreeForeignKey('self', null=True, blank=True,
related_name='children')
class MPTTMeta:
order_insertion_by = ['name']
class Organisation(models.Model):
technologies = models.ManyToManyField(Technology, blank=True)
Basically I want to store a bunch of organisations which are capable
of some technologies. The technologies itself can be arranged in a
taxonomy.
To allow easy entering of data, I added the following to my admin.py:
class OrganisationAdmin(admin.ModelAdmin):
filter_horizontal = ['technologies']
admin.site.register(Organisation, OrganisationAdmin)
My question is:
Is there a way to change the ManyToMany FormWidget to be aware of the
taxonomy of technologies? Can they be displayed with an indentation
inside the regular admin-m2m-widget?
Thank you for your guidance.