TypeError with empty IntegerValue
IntegerValue, ModuleValue and some other value types, which are rendered like text field, raise an exception, if the content of the textbox have been deleted and the form is being saved.
/.../python2.5/django_livesettings/livesettings/values.py in to_python, line 508 (to_python) -> return int(value) TypeError at /settings/ int() argument must be a string or a number, not 'NoneType' }}} How should I solve it? Possibilities are:
Insert automatically the default value.
Insert automacitally Zero.
Make that field required.
PositiveIntegerValue is automatically required because of validation rule for the minimal value.