Django-Activity-Stream in Admin

357 Views Asked by At

I am trying to implement django-activity-stream and got all the way to implementing actions. (http://django-activity-stream.readthedocs.org/en/latest/actions.html)

So far this is the action I have:

def schedules_concert(sender, instance, created, **kwargs):
    action.send(instance, verb='scheduled a concert')

post_save.connect(schedules_concert, sender=Band)

What is not clear to me is where I should add the triggers for the actions. All the data in the app is inserted through the admin interface, so where should I call the action.send command?

0

There are 0 best solutions below