Commit 35ca545d authored by Samuel GAIST's avatar Samuel GAIST Committed by Flavio TARSETTI
Browse files

[team][signals] Pre-commit cleanup

parent 59dbcf18
......@@ -28,4 +28,3 @@
import django.dispatch
added_to_team = django.dispatch.Signal(providing_args=["members"])
......@@ -25,14 +25,20 @@
# #
###############################################################################
from django.dispatch import receiver
from actstream import action
from django.dispatch import receiver
from ..signals import added_to_team
@receiver(added_to_team)
def on_added_to_team(sender, **kwargs):
members = kwargs['members']
for member in members:
action.send(sender.owner, verb="has added", action_object=member, target=sender, public=False)
members = kwargs["members"]
for member in members:
action.send(
sender.owner,
verb="has added",
action_object=member,
target=sender,
public=False,
)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment