def field_type(field):
    """
    Retrieves the type of a given field.

    :param DjangoField field: A reference to the given field.
    :rtype: str
    :returns: The type of the field.
    """
    return field.get_internal_type()