Skip to content
Snippets Groups Projects
Commit 9732e7cf authored by borzechof99's avatar borzechof99 :whale2:
Browse files

Add Question ID to Criterion serialization

parent ad4c27f7
No related branches found
No related tags found
No related merge requests found
......@@ -191,6 +191,7 @@ class CriteriaSerializer(serializers.BaseSerializer):
criterion_dict = {}
criterion_dict["id"] = crit.pk
criterion_dict["question_id"] = crit.question.pk
criterion_dict["name"] = crit.name
criterion_dict["number_of_sports_active"] = active_sports
criterion_dict["sum_of_weights"] = sum_of_weights
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment