diff --git a/djangoldp_tzcld/models.py b/djangoldp_tzcld/models.py index ab3b4265514bfdb41c3f2ac08936a4d677bd430f..042d104eccf816dae84a755bf52a630434451192 100644 --- a/djangoldp_tzcld/models.py +++ b/djangoldp_tzcld/models.py @@ -993,7 +993,7 @@ def create_user_tzcld_profile(sender, instance, created, **kwargs): # add the user to the first (tzcld) community community = Community.objects.order_by('id').first() if community: - community.members.create(user=instance) + community.members.user_set.add(user) # Create tzcld community profile, job instance and contact email/phone when community is created @receiver(post_save, sender=Community)