2010/8/13 cootetom <[email protected]> > Hi, as far as i'm aware, the delete method on models only get's called > if you delete an instance of that modal directly. So if you delete a > modal who has many children, the child delete methods don't get > called. So I suppose the next question would be are you deleting > TrackCategory's directly or are you deleting something that contains > TrackCategory's? >
In my test I'm deleting the category directly from the admin panel. But the other case is also possible because TrackCategories can be nested in a tree with MPTT (code.google.com/p/django-mptt/), perhaps this app override delete() ? In my test the TrackCategory I'm deleting has no subcategories and has no parent category. -- 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.

