On Mar 19, 6:50 pm, Malcolm Tredinnick <malc...@pointy-stick.com> wrote: > The error is telling you exactly what the problem is. You can't do the > automatic assignment to many-to-many relations that use an intermediate > table. The reason being that the whole point of an intermediate table is > that it has *extra* information specified on it (otherwise you could > just use a normal ManyToManyField). So you need to create objects with > that extra information and save then explicitly. > > Short version is you can't use save_m2m() in that case for precisely > this reason. You'll need to extract out the necessary data from the > form, and save it on the intermediate model.
In this case, all I need is the post_save signal for when the m2m is saved. The reason being is that I have Ticket.do_stuff in the example above computes the value of a field in Ticket and the value depends on what what Systems are related. Is there a way I can achieve that without a custom intermediate model? Manually invoking a method to do this doesn't work because that would break in cases like modifying things in admin. --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---