id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 26215 FloatRangeField/IntegerRangeField with None as a range boundary doesn't round trip in serialization Алексей nobody "1. FloatRangeField db data == None 2. ./manage dumpdata 3. ./manage loaddata Conversion problem. accept string u'None' to float type Traceback: {{{ File ""/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py"", line 1803, in to_python params={'value': value}, }}} Decision: {{{ def to_python(self, value): if value == u'None': return None elif value is None: return value try: return float(value) except (TypeError, ValueError): raise exceptions.ValidationError( self.error_messages['invalid'], code='invalid', params={'value': value}, ) }}} And IntegerField too Source data dump example: {{{ {""upper"": ""None"", ""lower"": ""1.45"", ""bounds"": ""[)""} }}} " Bug closed contrib.postgres 1.9 Normal fixed Алексей Ready for checkin 1 0 0 0 0 0