> I don't think there's a clean solution to this (as far as making the
> Admin work with it). I don't think the admin can make use of a custom
> manipulator without hackish code.

Bummer, I figured the best I could hope for would be to replace the
automatic manipulators to do my bidding after they do their normal
thing, but I couldn't figure out how to do that. Guess it isn't really
in the cards.

> If you are open to patching Django itself, you could add a custom
> signal to django.db.models.manipulators.AutomaticManipulator.save() to
> transmit a "post_full_save" signal at the very end of that method
> call. That would give you the appropriate hook you need.

This isn't a bad idea, I might have to hack something like this in.

> Another idea is to use a database trigger on the m2m table to update
> the count/boolean field on the parent table.

Another possibility....

Thanks for the ideas!


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to