Change doc_type to field_type and .first() to one()