Re: Creating bound form and sending it to the page without validation

2009-03-25 Thread Marek Wawrzyczek
Sorry for the late reply. I did as you suggested - overrided form's clean method.For example when I did sth like this: Template: {{carForm.as_p}} {{carPhotoForm.as_p}} Model: class Car(models.Model): car_type = models.IntegerField()

Re: Creating bound form and sending it to the page without validation

2009-03-23 Thread Malcolm Tredinnick
On Mon, 2009-03-23 at 17:46 +0100, Marek Wawrzyczek wrote: > I'd like to make a page, where the user will be able to edit a data of > his account and add photos. There will be 2 buttons: add photo, and > submit form. Add photo button will cause adding a photo to the server, > so the form will be

Re: Creating bound form and sending it to the page without validation

2009-03-23 Thread Marek Wawrzyczek
I'd like to make a page, where the user will be able to edit a data of his account and add photos. There will be 2 buttons: add photo, and submit form. Add photo button will cause adding a photo to the server, so the form will be submited, and then in the response generated by django (so that the

Re: Creating bound form and sending it to the page without validation

2009-03-22 Thread Malcolm Tredinnick
On Mon, 2009-03-23 at 00:59 +0100, Marek Wawrzyczek wrote: > Hi > > Is there any possibility, to create an bound instance of a form (even if > it contains fields with incorrect data) and then resend the form to the > page without validating ? > Almost certainly yes, since there's nothing to

Creating bound form and sending it to the page without validation

2009-03-22 Thread Marek Wawrzyczek
Hi Is there any possibility, to create an bound instance of a form (even if it contains fields with incorrect data) and then resend the form to the page without validating ? Regards, Marek --~--~-~--~~~---~--~~ You received this message because you are