|
|
|
@ -34,7 +34,7 @@ class MiddleArticleCollectionSerializer(serializers.ModelSerializer): |
|
|
|
model = ArticleCollection |
|
|
|
fields = ('id', 'title', 'slug', 'summary', 'status', 'order', 'pin_top', 'articles') |
|
|
|
|
|
|
|
def get_podcasts(self, obj): |
|
|
|
def get_articles(self, obj): |
|
|
|
articles = obj.articles.filter(status=True).order_by('-created_at') |
|
|
|
return ArticleListSerializer(articles, many=True, context=self.context).data |
|
|
|
|
|
|
|
|