Skip to content

Commit b643d68

Browse files
committed
[controller] Update hostname if provided by the client openwisp#293
Fixes openwisp#293
1 parent 53da00c commit b643d68

File tree

1 file changed

+1
-1
lines changed
  • openwisp_controller/config/controller

1 file changed

+1
-1
lines changed

openwisp_controller/config/controller/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ class DeviceUpdateInfoView(ActiveOrgMixin, CsrfExtemptMixin, BaseConfigView):
126126

127127
model = Device
128128

129-
UPDATABLE_FIELDS = ['os', 'model', 'system']
129+
UPDATABLE_FIELDS = ['os', 'model', 'system', 'name']
130130

131131
def post(self, request, *args, **kwargs):
132132
device = self.get_object(*args, **kwargs)

0 commit comments

Comments
 (0)