def get_form_field(self, **kwargs):
    defaults = {'form_class': forms.IntegerField}
    defaults.update(kwargs)
    return super(IntegerProperty, self).get_form_field(**defaults)
Return a Django form field appropriate for an integer property.
dataset/ETHPy150Open IanLewis/kay/kay/utils/forms/modelform.py/IntegerProperty.get_form_field