fix for tests for new WTForms (>=0.9.0) import 'from wtforms import TextField'
Fix for "object has no attribute 'to_dbref'" on EmbeddedDocument