add inital implementation for a websocket, disabled by default for now
This commit is contained in:
parent
7aa609c246
commit
e7f83f674e
15 changed files with 191 additions and 2 deletions
|
|
@ -9,6 +9,7 @@ from django.db import models
|
|||
from ox.django import fields
|
||||
import ox
|
||||
|
||||
import websocket
|
||||
import managers
|
||||
|
||||
'''
|
||||
|
|
@ -34,6 +35,7 @@ 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})
|
||||
|
||||
class Log(models.Model):
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue