Re: save() prohibited to prevent data loss due to unsaved related object 'committee'

2015-10-21 Thread Yaniv Mirel
e Committee.save() method look like? You have no problem if > you remove that method? > > On Tuesday, October 20, 2015 at 2:22:24 PM UTC-4, Yaniv Mirel wrote: >> >> I've found out that this error is happening because I also have a def >> save() function on the committe

Re: save() prohibited to prevent data loss due to unsaved related object 'committee'

2015-10-20 Thread Yaniv Mirel
I've found out that this error is happening because I also have a def save() function on the committee model. So I am not sure if this is a bug or I am not suppose to have it like that. On Tuesday, October 20, 2015 at 9:02:27 PM UTC+3, Yaniv Mirel wrote: > > Hi, > > I am gettin

save() prohibited to prevent data loss due to unsaved related object 'committee'

2015-10-20 Thread Yaniv Mirel
Hi, I am getting this error when running model post save signal. The error traceback is for gr.save() it seems like the committee model is not saving before it need to be assigned to GroupRole model as a FK. this is the post_save signal code. @receiver(post_save, sender=Community) def set_de