<gh_stars>0
from rest_framework.generics import ListAPIView

from posts.models import Post
from .serializers import PostSerializer

class PostListAPIView(ListAPIView):
	queryset = Post.objects.all()
	serializer_class = PostSerializer
from rest_framework.generics import ListAPIView

from posts.models import Post
from .serializers import PostSerializer

class PostListAPIView(ListAPIView):
	queryset = Post.objects.all()
	serializer_class = PostSerializer