Skip to content

Commit

Permalink
Merge pull request #70 from myslak71/front_create_duel
Browse files Browse the repository at this point in the history
refactor views
  • Loading branch information
myslak71 committed Feb 23, 2019
2 parents ae24874 + 28a0823 commit 3493c46
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions duels/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,6 @@ class DuelDetailView(RetrieveAPIView):
serializer_class = DuelSerializer
permission_classes = (permissions.IsAuthenticated,)

def get_serializer_context(self):
context = super().get_serializer_context()
context['pass_username'] = True
return context


class AlgorithmCreateView(CreateAPIView):
queryset = Algorithm.objects.all()
Expand Down

0 comments on commit 3493c46

Please sign in to comment.