Add an __init__ function to your form that you can pass request to.
def __init__(self, request=None, *args, **kwargs):
self.request = request
super(MyForm, self).__init__(*args, **kwargs)
Something like that should work to add request to the form, and you
can then use it in the clean_fieldname functions :)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---