Fix device creation

This commit is contained in:
Kumi 2019-02-02 15:35:14 +00:00
parent 8a62cd6ac5
commit ae590f402f

View file

@ -550,7 +550,8 @@ def makedevice(request):
model=Model.objects.filter(id=device_model)[0],
network=Network.objects.filter(intip="No VPN")[0],
organization=Organization.objects.filter(id=device_organization)[0],
vpnconfig = open(CONFIGDIR + "/files/" + device_serial + ".ovpn").read()
vpnconfig = open(CONFIGDIR + "/files/" + device_serial + ".ovpn").read(),
changed = timezone.now()
)
return redirect("/devices/")