Re: form issue.

2013-09-13 Thread Nigel Legg
OK, thanks Daniel, putting blank = True and null = True has let me get through that. I used a standard model so I can change the field labels on the form need to do some more reading I think. Cheers, Nigel 07914 740972 On 13 September 2013 12:05, Nigel Legg wrote: > So is blank = True an

Re: form issue.

2013-09-13 Thread Nigel Legg
So is blank = True and null = True in the model? What I have done is working fine in another form, so why is it not working here? Cheers, Nigel 07914 740972 On 13 September 2013 11:59, Daniel Roseman wrote: > On Friday, 13 September 2013 08:45:51 UTC+1, Nigel Legg wrote: > >> I have a form w

Re: form issue.

2013-09-13 Thread Daniel Roseman
On Friday, 13 September 2013 08:45:51 UTC+1, Nigel Legg wrote: > I have a form with a lot of fields in it. Users will never require data > in all fields, so most have the required = False tag: > > > [This is a good example of how the for would be used] > > When I submit the form, I get the err

Re: form issue.

2013-09-13 Thread Nigel Legg
Declared where as NULL fields? in the view, the model, the form? Where? In another form the required=False is working, I don't know why it is not here. Cheers, Nigel 07914 740972 On 13 September 2013 11:55, MikeKJ wrote: > Check that the fields in the database are declared as NULL fields > >

Re: form issue.

2013-09-13 Thread MikeKJ
Check that the fields in the database are declared as NULL fields -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. T

form issue.

2013-09-13 Thread Nigel Legg
I have a form with a lot of fields in it. Users will never require data in all fields, so most have the required = False tag: model: class EditStruct(models.Model): varName = models.CharField(max_length=50) varOrder = models.IntegerField() varLabel = models.CharField(max_length=200)

Re: Complex Form Issue with saving only 1 of 4 form items

2009-03-15 Thread Malcolm Tredinnick
On Sun, 2009-03-15 at 18:54 -0700, steven.head...@gmail.com wrote: > Hello, > I am trying to create a complex form similar to the poll example. [...] > This method displays my form correctly, but when I try to save filling > out only 1 of the 4 Choices, I get a required validation error. Is >

Complex Form Issue with saving only 1 of 4 form items

2009-03-15 Thread steven.head...@gmail.com
Hello, I am trying to create a complex form similar to the poll example. My create method is very similar to the following: def create(request): if request.method == 'GET': pollform = bforms.PollForm() choiceforms = [] for i in range(4): choiceforms.app

weird form issue

2008-11-24 Thread Bobby Roberts
I've got a form that is kind of working. It's very strange because only choice fields are being pushed to the form and the textfields are not visible. Has anyone ever run across this before? --~--~-~--~~~---~--~~ You received this message because you are subscr

Re: form issue

2008-11-19 Thread Bobby Roberts
On Nov 19, 12:11 am, "David Zhou" <[EMAIL PROTECTED]> wrote: > It'll be helpful if you post the entire view, but well, like the error > says, is form defined? ah... i had it defined in another view and not in the current one... many thanks. --~--~-~--~~~---~--~~

Re: form issue

2008-11-18 Thread David Zhou
It'll be helpful if you post the entire view, but well, like the error says, is form defined? On Wed, Nov 19, 2008 at 12:08 AM, Bobby Roberts <[EMAIL PROTECTED]> wrote: > > hi group. > > I have the following statement: > >return render_to_response('donate-now.html', > {'form':form,'ErrCode':e

form issue

2008-11-18 Thread Bobby Roberts
hi group. I have the following statement: return render_to_response('donate-now.html', {'form':form,'ErrCode':errcodevalue,'Status':responsestatus,'TextResult':responsetext}, context_instance=RequestContext(request)) Which pushes data back to the template where a form resides. I'm getting

Re: perplexing form issue

2008-10-05 Thread Malcolm Tredinnick
On Sun, 2008-10-05 at 20:21 -0700, Bobby Roberts wrote: > Hi group. I have form on the right side of my website. It's a > simple site consisting of a single template and utlizes flat pages. > Now i can create content just fine and that is all working. The issue > is that the form is not showi

perplexing form issue

2008-10-05 Thread Bobby Roberts
Hi group. I have form on the right side of my website. It's a simple site consisting of a single template and utlizes flat pages. Now i can create content just fine and that is all working. The issue is that the form is not showing up when I view the site. I'm assuming that it is because some

Re: File Upload, form issue

2008-05-02 Thread Peter
It's probably one of two things: 1. You might be pointing to the wrong template, load the page in your browser and hit view source to ensure that your form is indeed doing enctype="multipart/form-data", and that whatever url you're pointing to for the action attribute is blank or for debugging, t

Re: File Upload, form issue

2008-04-16 Thread Karen Tracey
On Wed, Apr 16, 2008 at 11:39 AM, sparky <[EMAIL PROTECTED]> wrote: > > Thank you for your help. > > I'm baffled. The validation error is: > > contentThis field > is required. > > which is fair enough... but it is in the form and I've selected a > file, clicked open, and clicked submit... > I've

Re: File Upload, form issue

2008-04-16 Thread sparky
Thank you for your help. I'm baffled. The validation error is: contentThis field is required. which is fair enough... but it is in the form and I've selected a file, clicked open, and clicked submit... I'm probably doing something mind-meltingly stupid. hmmm. Glad the rest of it seems ok, t

Re: File Upload, form issue

2008-04-16 Thread Karen Tracey
On Wed, Apr 16, 2008 at 6:55 AM, sparky <[EMAIL PROTECTED]> wrote: > > Hello all, > > I have a slightly unusual requirement: I want to use a FileField in a > form but with a TextField in the model. (The content being uploaded is > a big bit of flat text, but I want to store it in the database, not

Re: File Upload, form issue

2008-04-16 Thread Chris Hoeppner
It would really help to know some more about your setup. Eg, are you using a form generator, using newforms "by hand" or are you making it all the "artisan" way, coding the html yourself? Maybe post a bit of your view code and the relevant template / form bits. ~ Chris El mié, 16-04-2008 a las

File Upload, form issue

2008-04-16 Thread sparky
Hello all, I have a slightly unusual requirement: I want to use a FileField in a form but with a TextField in the model. (The content being uploaded is a big bit of flat text, but I want to store it in the database, not as a file.) The problem is that with the code that I have together the reque