I am using 0.97-pre. I also am  using new forms with a similar date field at 
work for a different website and I do not encounter the error, though I am 
using the form_for_model instead I am using the custom form. But, I will try 
and compare the two and see where the differences might be.

Thanks,
Jeff

-------------- Original message -------------- 
From: Malcolm Tredinnick <[EMAIL PROTECTED]> 

> 
> On Thu, 2007-08-16 at 05:25 -0700, jeffhg58 wrote: 
> > Hi, 
> > 
> > I am using a form_as_model with newforms and when I do a save I get 
> > the following error message on the form: 
> > 
> > format is %Y-%m-%d %H:%M:%S. 
> 
> Grepping through the source code, the string "format is" does not appear 
> anywhere in the source in the for you describe. Which version of Django 
> are you using? 
> 
> [...] 
> > views.py 
> > 
> > AddEventFormClass = forms.form_for_model(Events) 
> > 
> > if request.method == 'POST': 
> > # If data was POSTed, we're trying to create a new Event. 
> > form = AddEventFormClass(request.POST) 
> > 
> > 
> > # Check for errors. 
> > print 'errors is ', form.errors 
> > if form.is_valid(): 
> > form.save() 
> > return HttpResponseRedirect("/tct/events/%s/" % city_id) 
> > 
> > The errors occur before the form.is_valid check 
> 
> What do you mean? Does an actual exception get raised? Or are you saying 
> that something is printed out on the line where your print statement is? 
> 
> Perhaps you could paste the actual traceback or printed output rather 
> than trying to summarise the results, because it's not clear what is 
> really going on. 
> 
> Also, what is in the POSTed data for the field in question? Is it valid 
> data? 
> 
> Regards, 
> Malcolm 
> 
> -- 
> If Barbie is so popular, why do you have to buy her friends? 
> http://www.pointy-stick.com/blog/ 
> 
> 
> > 
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to