Skip to content
Snippets Groups Projects
Commit 44230227 authored by sks444's avatar sks444
Browse files

Fix submission detail api to list screening_statuses

parent 0fc4f8b5
No related branches found
No related tags found
No related merge requests found
...@@ -13,6 +13,7 @@ from hypha.apply.funds.models import ApplicationSubmission, RoundsAndLabs ...@@ -13,6 +13,7 @@ from hypha.apply.funds.models import ApplicationSubmission, RoundsAndLabs
from hypha.apply.review.models import Review, ReviewOpinion from hypha.apply.review.models import Review, ReviewOpinion
from hypha.apply.review.options import RECOMMENDATION_CHOICES from hypha.apply.review.options import RECOMMENDATION_CHOICES
from hypha.apply.users.groups import PARTNER_GROUP_NAME, STAFF_GROUP_NAME from hypha.apply.users.groups import PARTNER_GROUP_NAME, STAFF_GROUP_NAME
from hypha.apply.api.v1.screening.serializers import ScreeningStatusSerializer
User = get_user_model() User = get_user_model()
...@@ -158,7 +159,7 @@ class SubmissionDetailSerializer(serializers.ModelSerializer): ...@@ -158,7 +159,7 @@ class SubmissionDetailSerializer(serializers.ModelSerializer):
review = ReviewSummarySerializer(source='*') review = ReviewSummarySerializer(source='*')
determination = DeterminationSummarySerializer(source='*') determination = DeterminationSummarySerializer(source='*')
phase = serializers.CharField() phase = serializers.CharField()
screening = serializers.ReadOnlyField(source='screening_status.title') screening = ScreeningStatusSerializer(source='screening_statuses.all', many=True)
action_buttons = serializers.SerializerMethodField() action_buttons = serializers.SerializerMethodField()
is_determination_form_attached = serializers.BooleanField(read_only=True) is_determination_form_attached = serializers.BooleanField(read_only=True)
......
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