forked from 0x2620/pandora
include user in change event
This commit is contained in:
parent
f9ba4d1bf1
commit
562a506d68
1 changed files with 5 additions and 1 deletions
|
@ -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):
|
||||
|
||||
|
|
Loading…
Reference in a new issue