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 submited, and then in the response generated by
> django (so that the fields user entered before adding a photo weren't
> cleaned) there will be error messages if the user filled the email
> field for example "addres@". So I'd like to do validating of "non
> image" fields only after submiting a form. 

Nothing requires you to display the error messages on the HTML page. You
can write your own form display method that only displays the errors if
some other context variable is set, for example.

However, you haven't mentioned what happens when you just try what you
want to do. Does it work? If not, what goes wrong?

Regards,
Malcolm



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
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