fix representation of IntegerField

This commit is contained in:
b.khasanov 2016-05-13 10:43:53 +03:00
parent ebb4070467
commit 7c806aaaec

View File

@ -845,7 +845,7 @@ class IntegerField(Field):
return data return data
def to_representation(self, value): def to_representation(self, value):
return int(value) return int(value) if value is not None else None
class FloatField(Field): class FloatField(Field):