Some checks failed
Build and Push to Docker Hub / build-test-push (push) Failing after 1m55s
13 lines
345 B
Python
13 lines
345 B
Python
from rest_framework import viewsets
|
|
|
|
from core.http import models
|
|
from core.http import serializers
|
|
|
|
|
|
class PostListView(viewsets.ModelViewSet):
|
|
queryset = models.Post.objects.all()
|
|
serializer_class = serializers.PostSerializer
|
|
|
|
def dispatch(self, request, *args, **kwargs):
|
|
return super().dispatch(request, *args, **kwargs)
|