fix #1275 Model field type categorical broken
Merge pull request #1276 from dennishendriksen/master

Fix #1275 Model field type categorical broken