Re: Question regarding post_save signal and ManyToMany field objects

2009-07-14 Thread Ryan K
Alex, So I have my Menus that contain links and a Link can be in multiple Menus. Are you saying make an explicit model like: class MenuLinks(models.Model): menu = models.ForeignKey(Menu) link = models. ForeignKey(Link) ? Basically what I am doing is making an enhanced flatpages app

Re: Question regarding post_save signal and ManyToMany field objects

2009-07-14 Thread Alex Gaynor
On Tue, Jul 14, 2009 at 9:35 AM, Russell Keith-Magee wrote: > > On Tue, Jul 14, 2009 at 6:27 PM, Ryan K wrote: > > > > Yea...it would be so elegant too! Here is a "bug" filing: > > http://code.djangoproject.com/ticket/5390. It's been open for two >

Re: Question regarding post_save signal and ManyToMany field objects

2009-07-14 Thread Russell Keith-Magee
On Tue, Jul 14, 2009 at 6:27 PM, Ryan K wrote: > > Yea...it would be so elegant too! Here is a "bug" filing: > http://code.djangoproject.com/ticket/5390. It's been open for two > years A little history may help explain why this has been open for so long. Historically

Re: Question regarding post_save signal and ManyToMany field objects

2009-07-14 Thread Ryan K
Yea...it would be so elegant too! Here is a "bug" filing: http://code.djangoproject.com/ticket/5390. It's been open for two years I understand that your really getting what you asked for, just the instance of the model you just saved but to me (and it seems you and a lot of other people),

Re: Question regarding post_save signal and ManyToMany field objects

2009-07-14 Thread Eugene Mirotin
If I understand right, the problem is that you want the signal after all related fields are already saved. If so, this is exactly the problem I have too. You see, when you have such a relation (and, for example, edit the parent object with inlined related objects from the admin page, Django _has