Disallow spaces in system names
get obj_type from db_table
Merge pull request #558 from drkitty/disallow-spaces-in-system-names

Disallow spaces in system names
removed unneeded .__class__
Merge pull request #560 from church29/fix_view_tests

fixes broken view tests. All tests pass.