def _is_shorthand_ip(ip_str):
    if ip_str.count('::') == 1:
        return True
    if any(len(x) < 4 for x in ip_str.split(':')):
        return True
    return False
Determine if the address is shortened.
dataset/ETHPy150Open django/django/django/utils/ipv6.py/_is_shorthand_ip