Sure.  Just override the clean method for the field, or the whole form if
you wish.  The built-in "default" validation done by Django doesn't handle
any logic; it just makes sure the format and type of each field is
appropriate.
On Dec 4, 2010 1:44 PM, "refreegrata" <[email protected]> wrote:
> ok, thanks for the answer. I have a final question. The other way is
> in the __init__ set initial values in hidden fields, but if the user
> (malicious) edit the value in some of this fields the form is invalid,
> and the form comeback, but with the values edited for the user and the
> error messages. Can I reset the initial values for the hidden fields
> before of return the form?
>
> --
> 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]<django-users%[email protected]>
.
> For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.
>

-- 
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