small fix

This commit is contained in:
Anatoly 2019-11-03 01:40:45 +03:00
parent 201dd40193
commit 10fb4ee0dd

View File

@ -225,7 +225,7 @@ class NewsDetailWebSerializer(NewsDetailSerializer):
many=True).data
#todo: refactor this
def def_should_read(self, obj):
def get_should_read(self, obj):
return NewsSimilarListSerializer(
obj.should_read.has_translation(self.context.get('request').locale)[:3],
many=True).data