Merge pull request #267 from astagi/feature/fixtypocreated
Use create instead of createdremotes/origin/enhancement/email-actions
commit
1ba41671b4
|
@ -37,7 +37,7 @@ def on_save_any_model(sender, instance, created, **kwargs):
|
||||||
|
|
||||||
type = "change"
|
type = "change"
|
||||||
if created:
|
if created:
|
||||||
type = "created"
|
type = "create"
|
||||||
|
|
||||||
emit_event = lambda: events.emit_event_for_model(instance, sessionid=sesionid, type=type)
|
emit_event = lambda: events.emit_event_for_model(instance, sessionid=sesionid, type=type)
|
||||||
connection.on_commit(emit_event)
|
connection.on_commit(emit_event)
|
||||||
|
|
Loading…
Reference in New Issue