On 10/8/06, zenx <[EMAIL PROTECTED]> wrote:
>
> I thought that was enought to validate the file but it doesn't validate
> anything when saving a new object, so what else should I do?

Instructions on validator use can be found here:

http://www.djangoproject.com/documentation/forms/#validators

By the look of it, you're close. You have defined a validator; you
just need to install it. Add a validator_list argument, either to your
form field in your custom manipulator, or to your model field, and you
should have model validation.

I have a vague recollection that the _manipulator method naming syntax
was correct for Django 0.91 (I could be wrong here - I haven't used
0.91 for a while). However, it has been replaced with a more flexible,
less 'magic' framework since the 0.95 release.

Yours,
Russ Magee %-)

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

Reply via email to