Skip to content

Commit

Permalink
Backend: Add is_flagged field in ChallengeSubmissionManagementSeriali…
Browse files Browse the repository at this point in the history
…zer(#2391)
  • Loading branch information
Sanji515 authored and RishabhJain2018 committed Jul 16, 2019
1 parent 1cb359e commit c90cd6d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/jobs/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ class Meta:
"created_by",
"status",
"is_public",
"is_flagged",
"submission_number",
"submitted_at",
"execution_time",
Expand Down
3 changes: 3 additions & 0 deletions tests/unit/challenges/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2972,6 +2972,7 @@ def setUp(self):
project_url="http://testserver2/",
publication_url="http://testserver2/",
is_public=True,
is_flagged=True,
)

with self.settings(MEDIA_ROOT="/tmp/evalai"):
Expand All @@ -2990,6 +2991,7 @@ def setUp(self):
project_url="http://testserver3/",
publication_url="http://testserver3/",
is_public=True,
is_flagged=True,
)

self.client.force_authenticate(user=self.user6)
Expand Down Expand Up @@ -3055,6 +3057,7 @@ def test_get_all_submissions_when_user_is_host_of_challenge(self):
"created_by": submission.created_by.username,
"status": submission.status,
"is_public": submission.is_public,
"is_flagged": submission.is_flagged,
"submission_number": submission.submission_number,
"submitted_at": "{0}{1}".format(
submission.submitted_at.isoformat(), "Z"
Expand Down

0 comments on commit c90cd6d

Please sign in to comment.