Skip to content

Commit

Permalink
refactor views
Browse files Browse the repository at this point in the history
  • Loading branch information
myslak71 authored and myslak71 committed Feb 23, 2019
1 parent 3e3ada5 commit 28a0823
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 28a0823

Please sign in to comment.