fix: circle community creation on create_community

parent d662a2fa
Pipeline #11148 passed with stage
in 24 seconds
......@@ -16,7 +16,7 @@ class Command(BaseCommand):
if(not Model.is_external(user)):
CommunityMember.objects.get_or_create(community=community[0], user=user)
for circle in Circle.objects.all():
if(not Model.is_external(circle)):
if(not Model.is_external(circle)) and not hasattr(circle, 'community'):
CommunityCircle.objects.get_or_create(community=community[0], circle=circle)
self.stdout.write(self.style.SUCCESS('Successful created community'))
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