Re: model form validation always failing

2009-06-08 Thread watad
the form is working fine now , actually my form was inside another form , that was the problem On May 22, 6:55 pm, watad wrote: > hi karen , actually im runing this code , after submit i can see all > the data inside the model ,only the filefield resume is empty , of > course when i test this  i

Re: model form validation always failing

2009-05-22 Thread watad
hi karen , actually im runing this code , after submit i can see all the data inside the model ,only the filefield resume is empty , of course when i test this i add (blank=True, null=True) to my resume field , so why do u think the other fileds is geeting the data submitted by the form and the r

Re: model form validation always failing

2009-05-21 Thread Stu.Axon
Reposted as own subject with all the details On May 21, 5:18 pm, "Stu.Axon" wrote: > I'm having the same problem - using a modelform > > I've got two fields jad_file and jar_file, I notice when I look at the > html that they turn into > id_jad_file > and > id_jar_file > > Is there a reason for t

Re: model form validation always failing

2009-05-21 Thread Stu.Axon
I'm having the same problem - using a modelform I've got two fields jad_file and jar_file, I notice when I look at the html that they turn into id_jad_file and id_jar_file Is there a reason for this? On May 20, 7:13 pm, Karen Tracey wrote: > On Wed, May 20, 2009 at 2:39 AM, watad wrote: > > >

Re: model form validation always failing

2009-05-20 Thread Karen Tracey
On Wed, May 20, 2009 at 2:39 AM, watad wrote: > > this is my form after thomas reply: > > {{ form.as_p }} > > > > > and this is my view after your reply : > > def careerspage(request): > if request.me

Re: model form validation always failing

2009-05-19 Thread watad
this is my form after thomas reply: {{ form.as_p }} and this is my view after your reply : def careerspage(request): if request.method == 'POST': form = CareerForm(request.POST,request.FI

Re: model form validation always failing

2009-05-19 Thread Karen Tracey
On Tue, May 19, 2009 at 5:23 AM, watad wrote: > i have a model Career > > class Career(models.Model): > full_name = models.CharField(max_length=200) > email = models.EmailField() > nationality = CountryField() > resume = models.FileField(upload_to='resumes') > def __unicode__(self): >

Re: model form validation always failing

2009-05-19 Thread watad
thanks for the reply thomas if tried that but it is still giving the validation message On May 19, 1:18 pm, Thomas Guettler wrote: > Maybe you form misses this: enctype="multipart/form-data" > > watad schrieb: > > > dear all > ... > > i can see the fileds but when i try to submit , the rusume va

Re: model form validation always failing

2009-05-19 Thread Thomas Guettler
Maybe you form misses this: enctype="multipart/form-data" watad schrieb: > dear all ... > i can see the fileds but when i try to submit , the rusume validation > is always failing (This field is required.) > although i upload the file, and i was able to add data usign the admin > interface witho

model form validation always failing

2009-05-19 Thread watad
dear all i have a model Career class Career(models.Model): full_name = models.CharField(max_length=200) email = models.EmailField() nationality = CountryField() resume = models.FileField(upload_to='resumes') def __unicode__(self): return self.full_name and i have the model fo