news.viewsets module

class news.viewsets.NewsItemViewSet(**kwargs)[source]

Bases: rest_framework.viewsets.ReadOnlyModelViewSet

permission_classes = [<class 'rest_framework.permissions.AllowAny'>]
serializer_class

alias of news.serializers.NewsItemSerializer

template_name = 'news/news_card_content_for_api.html'
renderer_classes = (<class 'rest_framework.renderers.TemplateHTMLRenderer'>, <class 'rest_framework.renderers.JSONRenderer'>)
get(request, *args, **kwargs)[source]
list(request, *args, **kwargs)[source]
basename = None
description = None
detail = None
name = None
suffix = None