<gh_stars>1-10
from django.shortcuts import render

from rest_framework import viewsets
from ..models import NewsHeading
from ..serializers import NewsHeadingSerializer

class NewsHeadingViewSet(viewsets.ReadOnlyModelViewSet):
    queryset = NewsHeading.objects.all().order_by('pk')
    serializer_class = NewsHeadingSerializer

from django.shortcuts import render

from rest_framework import viewsets
from ..models import NewsHeading
from ..serializers import NewsHeadingSerializer

class NewsHeadingViewSet(viewsets.ReadOnlyModelViewSet):
    queryset = NewsHeading.objects.all().order_by('pk')
    serializer_class = NewsHeadingSerializer