in favorites for news
This commit is contained in:
parent
1140937346
commit
a9c1e5b154
|
|
@ -161,6 +161,7 @@ class NewsDetailWebSerializer(NewsDetailSerializer):
|
||||||
should_read = SerializerMethodField()
|
should_read = SerializerMethodField()
|
||||||
agenda = AgendaSerializer()
|
agenda = AgendaSerializer()
|
||||||
banner = NewsBannerSerializer()
|
banner = NewsBannerSerializer()
|
||||||
|
in_favorites = serializers.BooleanField(read_only=True)
|
||||||
|
|
||||||
class Meta(NewsDetailSerializer.Meta):
|
class Meta(NewsDetailSerializer.Meta):
|
||||||
"""Meta class."""
|
"""Meta class."""
|
||||||
|
|
@ -170,6 +171,7 @@ class NewsDetailWebSerializer(NewsDetailSerializer):
|
||||||
'should_read',
|
'should_read',
|
||||||
'agenda',
|
'agenda',
|
||||||
'banner',
|
'banner',
|
||||||
|
'in_favorites',
|
||||||
)
|
)
|
||||||
|
|
||||||
def get_same_theme(self, obj):
|
def get_same_theme(self, obj):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user