whenever I press Router, it will extract the ip, of the relevant router from the database and put it in the list-group on the right
list-group ?
def getdata(request):
qd = request.GET["ic-element-id"]
print (qd)
device_list = devicelist_detail.objects.filter(device_type=qd)
result1 = device_list.values("ip_address")
result1_list = []
for i in result1:
result1_list.append([i["ip_address"]])
return render(request, "devicelist.html", {"result1_list": result1_list})