from rest_framework import viewsets
from apps.blog import models
from apps.blog.api import serializers


class PostViewSet(viewsets.ModelViewSet):
    queryset = models.Post.objects.all().select_related('user')
    serializer_class = serializers.PostSerializer

a081e7175a7530765c368b812b903fa20d5943e3
<mask token>

<mask token>


class PostViewSet(viewsets.ModelViewSet):
    <mask token>
    <mask token>

<mask token>


class PostViewSet(viewsets.ModelViewSet):
    queryset = models.Post.objects.all().select_related('user')
    serializer_class = serializers.PostSerializer

from rest_framework import viewsets
from apps.blog import models
from apps.blog.api import serializers


class PostViewSet(viewsets.ModelViewSet):
    queryset = models.Post.objects.all().select_related('user')
    serializer_class = serializers.PostSerializer
