under the right conditions migrations suffer the same circular issue described in #320

under the right conditions migrations suffer the same circular issue described in #320.  this fixes the issue by having the import occur just slightly later via metaclassing.