Explorar el Código

Fix: Fix submitter parse error in url

pull/169/head
winkidney hace 5 años
committed by Isaac Bythewood
padre
commit
ed09a32423
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. +3
    -0
      core/serializers.py

+ 3
- 0
core/serializers.py Ver fichero

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


Cargando…
Cancelar
Guardar