small fix
This commit is contained in:
parent
201dd40193
commit
10fb4ee0dd
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user