Update ModelField to work with a broader range of fields

Add support for fields that use min and max value validators.
Pep8 lint
Merge pull request #926 from davesque/master

I was having problems with a custom field that used a min_value validator...