Beispiel #1
0
 def post(self, *args):
     user = self.request.user
     team = player_models.Team.objects.get(owner=user.userprofile.id)
     player_to_drop = self.request.POST['del_player']
     logic.drop_player(player_to_drop, team, user)
     return HttpResponseRedirect("")