Other answers still stand, but now you can do this using Django's _meta.get_field().
test._meta.get_field('name')
Note that the Model _meta API has begun its official support and documentation as of 1.8, but has been distributed and used in prior versions before its official documentation.