def relation_type(field):
    """
    Retrieves the type of the relation of a given related field.

    :param DjangoField field: A reference to the given field.
    :rtype: str
    :returns: A string that contains the type of the relation of the field.
    """
    return field.rel.__class__.__name__
