Commit e2f12a6c authored by Luis García's avatar Luis García
Browse files

Add polarity field to spatial input

parent def8cfca
......@@ -185,7 +185,7 @@ class SpatialInputAnswerSerializer(ModelSerializer):
class Meta:
model = Answer
fields = ('id', 'question', 'survey', 'owner', 'polarity', 'spatial_inputs')
fields = ('id', 'question', 'survey', 'owner', 'spatial_inputs')
class SocialInputsSerializer(ModelSerializer):
survey = SurveySerializer_temp()
......@@ -37,7 +37,7 @@ class SurveyQuestionSerializer_temp(ModelSerializer):
class SpatialInputSerializer_temp(ModelSerializer):
class Meta:
model = SpatialInput
fields = ('id', 'name', 'description', 'geometry', 'photo', 'category')
fields = ('id', 'name', 'description', 'geometry', 'photo', 'category', 'polarity')
class QuestionSerializer_temp_short(ModelSerializer):
class Meta:
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