Renaming document_type to doc_type. Quick and dirty.