add tox.ini
fixed the serializer.to_json() test
added a validation to the TypeField
Merge branch 'onyg/master' into orderbird/master