List Info

Thread: RequiredIfOtherFieldEquals validator and FileField




RequiredIfOtherFieldEquals validator and FileField
country flaguser name
United Kingdom
2007-02-28 09:14:19
I am trying to use RequiredIfOtherFieldEquals in the
validator_list  
of a FileField and have run in to a problem: When editing an
existing  
object in which the FileField is already populated and no
file is  
chosen for upload validation fails as there is no
field_data.

Is there any way that I can make a validator as a model
method so I  
have access to the instance or is there another way around
this?

Thanks for any help,
Arthur

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )