commit | 972a8aa505f3bd8f3aee0afd6b1aab37772e41d5 | [log] [tgz] |
---|---|---|
author | Matteo Scandolo <teo@opennetworking.org> | Thu Mar 15 15:10:27 2018 -0700 |
committer | Matteo Scandolo <teo@opennetworking.org> | Mon Mar 19 21:53:46 2018 +0000 |
tree | 605c36a8489337555cc7a6a72126229722a128b4 | |
parent | 81fd691136242bd066005c349903f3a12d08f141 [diff] |
[CORD-2742] Publishing model fields on redis delete event Change-Id: I79cab9881b59eba0a1d31ad673cb69c61fd13fff
diff --git a/xos/core/models/xosbase_header.py b/xos/core/models/xosbase_header.py index ae42c3e..4b33116 100644 --- a/xos/core/models/xosbase_header.py +++ b/xos/core/models/xosbase_header.py
@@ -303,7 +303,7 @@ if deleted: json_dict['deleted'] = True - json_dict['object'] = {'id': pk} + json_dict['object']['id'] = pk payload = json.dumps(json_dict, default=json_handler) r.publish(self.__class__.__name__, payload)