diff --git a/ereuse_devicehub/api/views.py b/ereuse_devicehub/api/views.py index 3516c79e..ff5bd014 100644 --- a/ereuse_devicehub/api/views.py +++ b/ereuse_devicehub/api/views.py @@ -63,7 +63,7 @@ class InventoryView(LoginMix, SnapshotMix): db.session.commit() self.response = jsonify( { - 'url': snapshot.device.url, + 'url': snapshot.device.url.to_text(), 'dhid': snapshot.device.devicehub_id, 'sid': snapshot.sid, }