From b643d68aafafe50c4d0374018433ae46d94199c6 Mon Sep 17 00:00:00 2001 From: Oliver Kraitschy Date: Tue, 13 Oct 2020 09:58:46 +0200 Subject: [PATCH] [controller] Update hostname if provided by the client #293 Fixes #293 --- openwisp_controller/config/controller/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openwisp_controller/config/controller/views.py b/openwisp_controller/config/controller/views.py index 34e85fbae..2c34b67ae 100644 --- a/openwisp_controller/config/controller/views.py +++ b/openwisp_controller/config/controller/views.py @@ -126,7 +126,7 @@ class DeviceUpdateInfoView(ActiveOrgMixin, CsrfExtemptMixin, BaseConfigView): model = Device - UPDATABLE_FIELDS = ['os', 'model', 'system'] + UPDATABLE_FIELDS = ['os', 'model', 'system', 'name'] def post(self, request, *args, **kwargs): device = self.get_object(*args, **kwargs)