Commit 1e86210c authored by Calum Mackervoy's avatar Calum Mackervoy Committed by Jean-Baptiste Pasquier

setting project member name in set_captain_as_member

parent dafcd674
......@@ -109,4 +109,4 @@ def set_captain_as_member(instance, created, **kwargs):
# add captain as an admin member, if they've not already been added
if created and instance.captain is not None and\
not instance.members.filter(user=instance.captain).exists():
Member.objects.create(user=instance.captain, project=instance, is_admin=True)
Member.objects.create(user=instance.captain, project=instance, is_admin=True,
Markdown is supported
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