Merge pull request #267 from astagi/feature/fixtypocreated

Use create instead of created
remotes/origin/enhancement/email-actions
Jesús Espino 2015-02-24 18:34:02 +01:00
commit 1ba41671b4
1 changed files with 1 additions and 1 deletions

View File

@ -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)