          '0': 0,
          1: 1,
          0: 0,
          1.0: 1,
          0.0: 0
      }
      invalid_inputs = {
          'abc': ['A valid integer is required.']
      }
      outputs = {
 
</s> remove         'abc': ['A valid integer is required.']
 </s> add         0.5: ['A valid integer is required.'],
        'abc': ['A valid integer is required.'],
        '0.5': ['A valid integer is required.'] </s> remove             data = int(data)
 </s> add             data = int(re.compile(r'\.0*\s*$').sub('', str(data)))
        0.0: 0,
        '1.0': 1
          '0': 0,
          1: 1,
          0: 0,
          1.0: 1,
        0.0: 0,
        '1.0': 1
      }
      invalid_inputs = {
          'abc': ['A valid integer is required.']
      }
      outputs = {
keep keep keep keep replace keep keep keep keep keep
 Match IntegerField validation with Django's, preventing decimal values being stored as ints, fixes #2835.

Match IntegerField validation with Django IntegerField, prevents decimal values being stored as ints, fixes #2835
 On branch master 
tests/test_fields.py