def field_type(field):
	"""
	Get form field's type, usage:
	{{form.field_name|field_type}}
	:return: charfield, urlfield, typedchoicefield, imagefield, emailfield ...
	"""
	return field.field.widget.__class__.__name__