From 562a506d68dfbad8f41892b85dbfa0084adcb09c Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 8 May 2015 08:39:31 +0200 Subject: [PATCH] include user in change event --- pandora/changelog/models.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pandora/changelog/models.py b/pandora/changelog/models.py index c34d0907f..692e73126 100644 --- a/pandora/changelog/models.py +++ b/pandora/changelog/models.py @@ -35,7 +35,11 @@ def add_changelog(request, data, id=None): c.changeid = id or data.get('id') c.created = datetime.now() c.save() - websocket.trigger_event('change', {'action': c.action, 'id': c.changeid}) + websocket.trigger_event('change', { + 'action': c.action, + 'id': c.changeid, + 'user': c.user, + }) class Log(models.Model):