From c8ff7a74f13e5770e35c5dbce664d7ceb39f1f02 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Mon, 29 Aug 2022 12:49:15 +0200 Subject: [PATCH] messages succesfull --- ereuse_devicehub/inventory/views.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/ereuse_devicehub/inventory/views.py b/ereuse_devicehub/inventory/views.py index d673112c..28f1e252 100644 --- a/ereuse_devicehub/inventory/views.py +++ b/ereuse_devicehub/inventory/views.py @@ -303,10 +303,7 @@ class BindingView(GenericMixin): txt += 'device abstract PHID: {} DHID: {}.' messages.success( txt.format( - self.real_phid, - self.real_dhid, - self.abstract_phid, - self.abstract_dhid + self.real_phid, self.real_dhid, self.abstract_phid, self.abstract_dhid ) ) return flask.redirect(next_url) @@ -341,7 +338,11 @@ class UnBindingView(GenericMixin): dhid = placeholder.device.devicehub_id self.clone_device(placeholder.binding) next_url = url_for('inventory.device_details', id=dhid) - messages.success('Device with PHID:"{}" and DHID: {} unbind successfully!'.format(phid, dhid)) + messages.success( + 'Device with PHID:"{}" and DHID: {} unbind successfully!'.format( + phid, dhid + ) + ) return flask.redirect(next_url) self.context.update(