fix unbinding
This commit is contained in:
parent
967319f50c
commit
10879e6143
|
@ -265,6 +265,12 @@ class UnBindingView(GenericMixin):
|
|||
|
||||
device = placeholder.binding
|
||||
|
||||
if device.is_abstract() != 'Twin':
|
||||
dhid = device.devicehub_id
|
||||
next_url = url_for('inventory.device_details', id=dhid)
|
||||
messages.error('Device "{}" not is a Abstract device!'.format(dhid))
|
||||
return flask.redirect(next_url)
|
||||
|
||||
self.get_context()
|
||||
|
||||
if request.method == 'POST':
|
||||
|
|
Reference in New Issue