Django filtering with ipaddress lib

For example, I got a table with address field which can store both ip and subnet addresses. Called IPTable. And a got entire ip address like ''

How can i write a query to get data that into subnet?

IPTable.objects.create(address='') IPtable.objects.filter('' in '')??

Tried to use ipaddress lib to get all ips from this subnet

Back to Top