Commit b9ea687d authored by Sli's avatar Sli
Browse files

Fixed comment

parent c2ccf630
...@@ -30,13 +30,13 @@ class CounterViewSet(viewsets.ModelViewSet): ...@@ -30,13 +30,13 @@ class CounterViewSet(viewsets.ModelViewSet):
@list_route() @list_route()
def bar(self, request): def bar(self, request):
""" """
Return all counters (api/v1/counter/all) Return all counters (api/v1/counter/bar)
""" """
self.queryset = Counter.objects.filter(type="BAR") self.queryset = Counter.objects.filter(type="BAR")
serializer = self.get_serializer(self.queryset, many=True) serializer = self.get_serializer(self.queryset, many=True)
return Response(serializer.data) return Response(serializer.data)
@detail_route(methods=['GET']) @detail_route()
def id(self, request, pk=None): def id(self, request, pk=None):
""" """
Get by id (api/v1/{nk}/id) Get by id (api/v1/{nk}/id)
......
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