def uses_requirement(requirement, field):
    """
    Check if a given database field uses the specified requirement
    (IS_IN_SET, IS_INT_IN_RANGE, etc)
    """
    if hasattr(field.requires, "other") or requirement in str(field.requires):
        if hasattr(field.requires, "other"):
            if requirement in str(field.requires.other):
                return True
        elif requirement in str(field.requires):
            return True
    return False