One other thing:

-- newforms/forms.py - line 40 --

def __init__(self, data=None, auto_id=False): # TODO: prefix stuff
        self.ignore_errors = data is None

Change to:

def __init__(self, data=None, auto_id=False): # TODO: prefix stuff
        self.ignore_errors = not bool(data)

That way you can just throw request.POST into the Form.__init__, and
it will work as expected both before and after the form is submitted,
as in:

def login(request)
    form = UserRegistration(request.POST)
    if not form.is_valid():
         return render('login', form=form)

    # Form is valid do something here....


<vocalization style='stewart'>mmmmm, me likey</vocalization>

--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Django developers" 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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to