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'>)¶
-
basename
= None¶
-
description
= None¶
-
detail
= None¶
-
name
= None¶
-
suffix
= None¶
-