Re: ModelForm exclude form.is_valid form.save(commit=False) can not work

2010-01-08 Thread 菲平
ok, thinks :) On 1月8日, 下午10时35分, Karen Tracey wrote: > 2010/1/8 菲平 > > > > > > > Hi , Thinks for the new Django 1.2. > > > I just try the 1.2 , if tag and multiple databases is very good. > > > But I have a problem use the old code(run ok in 1.1) like this: > > > [snip] > > > when I submit the e

Re: ModelForm exclude form.is_valid form.save(commit=False) can not work

2010-01-08 Thread Karen Tracey
2010/1/8 菲平 > Hi , Thinks for the new Django 1.2. > > I just try the 1.2 , if tag and multiple databases is very good. > > But I have a problem use the old code(run ok in 1.1) like this: > > [snip] > > when I submit the error is : > > UnresolvableValidationError at /article/new/ > {'ip': [u'\u8fd

ModelForm exclude form.is_valid form.save(commit=False) can not work

2010-01-08 Thread 菲平
Hi , Thinks for the new Django 1.2. I just try the 1.2 , if tag and multiple databases is very good. But I have a problem use the old code(run ok in 1.1) like this: class articleDB(models.Model): user = models.ForeignKey(User,related_name='article_user') #文章作者 myclass = models.ForeignKey