Commit 2918f287 authored by Bruno Antunes Magrini's avatar Bruno Antunes Magrini
Browse files

Add fix report fields based on new models

parent 4ff7ba25
......@@ -41,8 +41,16 @@ class UserInDetailSerializer(serializers.ModelSerializer):
read_only=True,
slug_field='display_name'
)
gender = serializers.CharField(source='get_gender_display')
race = serializers.CharField(source='get_race_display')
gender = serializers.SlugRelatedField(
many=False,
read_only=True,
slug_field='name'
)
race = serializers.SlugRelatedField(
many=False,
read_only=True,
slug_field='name'
)
living_area = serializers.CharField(source='get_living_area_display')
comments_created = serializers.SerializerMethodField()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment