瀏覽代碼

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(


Loading…
取消
儲存