diff --git a/manager/views.py b/manager/views.py index 6524da2..1e45a7d 100644 --- a/manager/views.py +++ b/manager/views.py @@ -461,7 +461,7 @@ def makedevice(request): network=Network.objects.filter(intip="No VPN")[0], organization=Organization.objects.filter(id=device_organization)[0], vpnconfig = open(CONFIGDIR + "/files/" + device_serial + ".ovpn").read(), - mac = device_mac, + mac = device_mac or None, changed = timezone.now() )