I have a django model and a field representing an ip-address. I want order queryset of this model by ip-address value such "10.10.10.1"
I do Model.objects.order_by("ip_address")
, but I get this
QuerySet["10.10.10.1", "10.10.10.11", "10.10.10.12", ...]
I want this QuerySet["10.10.10.1", "10.10.10.2", "10.10.10.3", ...]
I don't know how to do this.
Anyone have any ideas?