Error in comparison query
I have AsnNetblocks table with following fields :
- id (bigint)
- start_ipaddress_id (IPyfield)
- end_ipaddredd_id (IPyfield)
- asn_id (int)
In my program, I am trying to get asn_id of a given ipaddress by doing: ipaddr = IP(ipaddress_from_user) asn_netblock = AsnNetblock.object.filter(start_ipaddress_idlte = ipaddr, end_ipaddress_idgte = ipaddr )
However lte/gte operations are giving me TypeErrors...