news.serializers module¶
-
class
news.serializers.
NewsItemSerializer
(instance=None, data=<class 'rest_framework.fields.empty'>, **kwargs)[source]¶ Bases:
rest_framework.serializers.ModelSerializer
-
class
Meta
[source]¶ Bases:
object
-
model
¶ alias of
news.models.NewsItem
-
fields
= ('id', 'date', 'headline', 'blurb', 'followup_link', 'followup_link_text')¶
-
-
class