Sorry about the tab conversions...

The most important part of the pull request is changing converter.py from:

212-        form_class = model_form(field.document_type_obj, field_args={})

to: 

+    form_class = model_form(field.model_class, field_args={})


This way, I can generate a FormField from a ModelType -- however, it seems like the values from the ModelType's model do not get set as field defaults in the generated FormField...  It's been giving me a headache for a couple of days, and I was wondering if you had any ideas about what's going on.

Thanks!  :)