Pārlūkot izejas kodu

Fix: Fix submitter parse error in url

pull/169/head
winkidney pirms 5 gadiem
committed by Isaac Bythewood
vecāks
revīzija
ed09a32423
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. +3
    -0
      core/serializers.py

+ 3
- 0
core/serializers.py Parādīt failu

@@ -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(


Notiek ielāde…
Atcelt
Saglabāt