Changes between Version 29 and Version 30 of BetterErrorMessages
- Timestamp:
- Feb 6, 2010, 3:19:27 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BetterErrorMessages
v29 v30 100 100 A ModelForm refers to a nonexistent field. 101 101 102 If you create a ModelForm but neglect to indicate the model in the Meta, you get: 103 {{{ 104 TypeError: 'NoneType' object is not callable 105 }}} 106 In django.forms.models line 240 there could be a check to make sure the options instance has a valid model declaration and if not warn the user more explicitly ("ModelForm <classname> does is missing the model") 107 102 108 == django.http == 103 109