Skip to content

Commit

Permalink
dont create a teaminvite when creating a team
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemaddem committed Aug 22, 2020
1 parent 07844cf commit 97bb47f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions teams/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def post(self, request):

Team.founder = self.request.user
Team.save()
invite = TeamInvite()
"""invite = TeamInvite()
invite.expire = timezone.now()
invite.user = self.request.user
invite.captain = 'founder'
Expand All @@ -197,7 +197,7 @@ def post(self, request):
invite.inviter = self.request.user
invite.inviter_id = self.request.user.id
invite.team_id = Team.id
invite.save()
invite.save()"""

messages.success(self.request, 'Your Team has been created successfully')
return redirect('teams:list')
Expand Down

0 comments on commit 97bb47f

Please sign in to comment.