Changes between Initial Version and Version 2 of Ticket #15708
- Timestamp:
- Mar 28, 2011, 11:21:47 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #15708 – Description
initial v2 2 2 3 3 Something like this will trigger the error: 4 4 {{{ 5 5 class TestForm(forms.Form) 6 6 name = forms.CharField() … … 10 10 name = self.cleaned_data['name'] # this is the offending line 11 11 return self.cleaned_data 12 12 }}} 13 13 If 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. 14 14