浏览代码

Fix: Fix submitter parse error in url

pull/169/head
winkidney 5 年前
committed by Isaac Bythewood
父节点
当前提交
ed09a32423
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. +3
    -0
      core/serializers.py

+ 3
- 0
core/serializers.py 查看文件

@@ -141,6 +141,9 @@ class BoardSerializer(serializers.HyperlinkedModelSerializer):
"submitter",
)
read_only_fields = ('submitter', 'published')
extra_kwargs = {
'submitter': {"view_name": "users:user-detail"},
}

pins_detail = PinSerializer(source="pins", many=True, read_only=True)
pins = serializers.HyperlinkedRelatedField(


正在加载...
取消
保存