Fix device creation
This commit is contained in:
parent
8a62cd6ac5
commit
ae590f402f
1 changed files with 2 additions and 1 deletions
|
@ -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/")
|
||||
|
|
Loading…
Reference in a new issue