Hi, I have a m2m like this:
class TrackCategory(Model): .... class Track(Model): category = models.ManyToManyField(TrackCategory) I want to avoid that users delete a TrackCategory which contains Tracks, the best would be to allow deletion of the TrackCategory if and only the linked Tracks belongs to more than one category. In other words, I want to avoid to have uncategorized Tracks. I tried to override TrackCategory.delete() to do some checks before calling the parent delete() but the method seems not to be called when deleting from the change_list in admin. Any idea? PS: I'm using Django 1.2 -- Alessandro Pasotti w3: www.itopen.it -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

