It's only able to access a field value in validator but it would be lacked
if checking request object data.
Should better to have another parameter for passing data to validators?
Maybe like this:
form = MyForm(request.POST, validator_data={'user': request.user})
def my_validator(value, validator_data):
user = validator_data.get('user')
# check something ....
--
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-developers.
For more options, visit https://groups.google.com/groups/opt_out.