Changes between Initial Version and Version 2 of Ticket #15708


Ignore:
Timestamp:
Mar 28, 2011, 11:21:47 PM (13 years ago)
Author:
Karen Tracey
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #15708 – Description

    initial v2  
    22
    33Something like this will trigger the error:
    4 
     4{{{
    55class TestForm(forms.Form)
    66    name = forms.CharField()
     
    1010        name = self.cleaned_data['name'] # this is the offending line
    1111        return self.cleaned_data
    12 
     12}}}
    1313If you display that form in a template and the user enters nothing into the field, it causes a KeyError which leads to a 500 error.  This same code used to work in Django 1.2, but it doesn't work in 1.3 anymore.
    1414
Back to Top