def is_required(field):
    """
    Test if a given field is required.

    :param DjangoField fields: A reference to the given field.
    :rtype: boolean
    :returns: A boolean value that is true only if the given field is required.
    """
    return not field.null
