Re: Bug or unaccepted behaviour

2016-02-14 Thread James Schneider
>>> def clone_creatives(self, src_theme_id): >>> themeA = Theme.objects.get(id=src_theme_id) >>> self.unit_set.all().delete() >>> for u in themeA.unit_set.all(): >>> u.id = None >>> u.theme_id = self.id This line is y

Re: Bug or unaccepted behaviour

2016-02-14 Thread Andreas Kuhne
Hi, Would need to see more of you code to understand exactly what you want to do. Regarding your question. It doesn't make sense, but I think you are asking the difference between "u.theme_id = self.id" and "u.theme = self"? I don't know exactly the difference, but I do know that you shouldn't ha

Bug or unaccepted behaviour

2016-02-14 Thread Arink Verma
Hi Django Experts I came across something unaccepted while using signal. def clone_creatives(self, src_theme_id): > themeA = Theme.objects.get(id=src_theme_id) > self.unit_set.all().delete() > for u in themeA.unit_set.all(): > u.id = None > u.