Re: Form not taking my input...

2010-09-14 Thread keynesiandreamer
Hey Daniel I was able to get my form working yay! Not sure the defaults was what I was looking for but you got me looking in the right direction. Thanks very much. -Ben On Sep 13, 2:41 pm, Daniel Roseman wrote: > On Sep 13, 9:32 pm, keynesiandreamer wrote: > > > > > Hi Daniel, thanks for looki

Re: Form not taking my input...

2010-09-13 Thread keynesiandreamer
Thanks Daniel. I have been modding code from a Django book I have been working through so figuring out how all the pieces work is always fun. Thanks for your insights here. I will get cracking on them later tonight. On Sep 13, 2:41 pm, Daniel Roseman wrote: > On Sep 13, 9:32 pm, keynesiandreame

Re: Form not taking my input...

2010-09-13 Thread Daniel Roseman
On Sep 13, 9:32 pm, keynesiandreamer wrote: > Hi Daniel, thanks for looking at this! > > Here is my views.py code related to this: > > @login_required > def wine_add_page(request): >   if request.method == 'POST': >     form = WineAddForm(request.POST) >     if form.is_valid(): >       #create or

Re: Form not taking my input...

2010-09-13 Thread keynesiandreamer
Hi Daniel, thanks for looking at this! Here is my views.py code related to this: @login_required def wine_add_page(request): if request.method == 'POST': form = WineAddForm(request.POST) if form.is_valid(): #create or get dummy wine wine, dummy = Wine.objects.get_or_create(

Re: Form not taking my input...

2010-09-13 Thread Daniel Roseman
On Sep 13, 5:48 pm, keynesiandreamer wrote: > Howdy, > > I am still new to Django and have been working with forms. > > Currently I a getting an error that says a field can't be NULL, even > though I have entered data into it. Weird! > > Error: > IntegrityError at /save/ > > winerater_wine.alcohol