Skip to content

Commit

Permalink
another 2 used.
Browse files Browse the repository at this point in the history
  • Loading branch information
ZivLi committed Jun 23, 2017
1 parent 7e5ba2f commit 362f383
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions blogpost/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Meta:

class BlogpostSet(viewsets.ModelViewSet):
permission_classes = (permissions.IsAuthenticatedOrReadOnly,)
serializer_class = BlogpsotSerializer
serializer_class = BlogpostSerializer
search_fields = 'title'

def get_queryset(self):
Expand All @@ -41,7 +41,7 @@ def list(self, request):
if search_param is not None:
queryset = Blogpost.objects.filter(title__contains=search_param)

serializer = BlogpsotSerializer(queryset, many=True)
serializer = BlogpostSerializer(queryset, many=True)
return Response(serializer.data)


Expand Down

0 comments on commit 362f383

Please sign in to comment.