also add inventory_source_id to websocket data

This commit is contained in:
Wayne Witzel III 2017-04-28 12:22:49 -04:00
parent 1248be9b7c
commit b651983045

View File

@ -1278,6 +1278,7 @@ class InventoryUpdate(UnifiedJob, InventorySourceOptions, JobNotificationMixin):
def websocket_emit_data(self):
websocket_data = super(InventoryUpdate, self).websocket_emit_data()
websocket_data.update(dict(inventory_source_id=self.inventory_source.pk))
if self.inventory_source.inventory is not None:
websocket_data.update(dict(inventory_id=self.inventory_source.inventory.pk))