Sistema de Apoio ao Processo Legislativo
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

9 lines
232 B

from rest_framework import serializers
class ChoiceSerializer(serializers.Serializer):
pk = serializers.IntegerField()
display = serializers.SerializerMethodField()
def get_display(self, obj):
return str(obj)