Re: ModelForm save call with data and instance

2011-07-05 Thread Constantine Linnick
I Found problem, it was triple collision: pycharm debugging sideeffect, wrong inheritance in _init_, but most destructive was form fields: it overwrites instance values with None. (if someone find this post from search anyway, thanks for reply -- You received this message because you are subsc

Re: ModelForm save call with data and instance

2011-07-05 Thread bruno desthuilliers
On Jul 5, 8:17 am, Constantine wrote: > def view(request) >     form = MyForm(request.POST, instance = MyModel(myfiled = 1)) >     if form.is_valid(): >         obj = form.save() > > but POST will NEVER merged with instance i've looked through stack: (snip) > in doesn't populate instance with clea