I preload the data into the form and when I validate it returns False.
Karen
--
http://tracey.org/kmt/
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Thanks Daniel and Karen,Karen, I;'m not entirely sure what an unbound form is. :)
Anyway, this is my test code:def test_appointment_form(self):c = Client()base_data = {'name':'Foo name','slug':'foo-session','short_descr':'foo tagline','long_descr':'long foo description','staff':self.staff,'business':self.business,'start_date':'2012-07-24','end_date':'2012-07-24',}self.form = AppointmentForm(business=self.business,staff=self.staff,initial=base_data)
self.failUnless(self.form.is_valid()) #<---- This failsprint self.form.errors #<----This doesn't print anythingresponse = c.post('/console/appointments/add', {'form':self.form})
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/r8lcpGOgA5gJ.