Skip to content

Commit

Permalink
[controller] Update hostname if provided by the client #293
Browse files Browse the repository at this point in the history
Fixes #293
  • Loading branch information
okraits committed Oct 13, 2020
1 parent 53da00c commit b643d68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openwisp_controller/config/controller/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b643d68

Please sign in to comment.