File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -195,6 +195,7 @@ $ git clone https://github.com/HelloGitHub-Team/HelloDjango-REST-framework-tutor
195
195
6. [使用视图集简化代码](https://www.zmrenwu.com/courses/django-rest-framework-tutorial/materials/95/)
196
196
7. [分页](https://www.zmrenwu.com/courses/django-rest-framework-tutorial/materials/96/)
197
197
8. [文章详情 API](https://www.zmrenwu.com/courses/django-rest-framework-tutorial/materials/97/)
198
+ 9. [在接口返回Markdown解析后的内容](https://www.zmrenwu.com/courses/django-rest-framework-tutorial/materials/98/)
198
199
199
200
# # 公众号
200
201
< p align=" center" >
Original file line number Diff line number Diff line change @@ -52,6 +52,8 @@ class PostRetrieveSerializer(serializers.ModelSerializer):
52
52
category = CategorySerializer ()
53
53
author = UserSerializer ()
54
54
tags = TagSerializer (many = True )
55
+ toc = serializers .CharField ()
56
+ body_html = serializers .CharField ()
55
57
56
58
class Meta :
57
59
model = Post
@@ -66,4 +68,6 @@ class Meta:
66
68
"category" ,
67
69
"author" ,
68
70
"tags" ,
71
+ "toc" ,
72
+ "body_html" ,
69
73
]
You can’t perform that action at this time.
0 commit comments