From 242b4e118ff0f3a09dd29a699942ad688c65b4b7 Mon Sep 17 00:00:00 2001 From: Pawan Verma Date: Mon, 2 Sep 2024 18:03:22 +0530 Subject: [PATCH] Change options to agree and disagree --- commcare_connect/opportunity/views.py | 2 +- commcare_connect/templates/opportunity/user_visit_review.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/commcare_connect/opportunity/views.py b/commcare_connect/opportunity/views.py index 7bc7403c..1dc14221 100644 --- a/commcare_connect/opportunity/views.py +++ b/commcare_connect/opportunity/views.py @@ -1064,7 +1064,7 @@ def user_visit_review(request, org_slug, opp_id): if request.POST and is_program_manager: review_status = request.POST.get("review_status") updated_reviews = request.POST.getlist("pk") - if review_status in ["approved", "rejected"]: + if review_status in ["agree", "disagree"]: UserVisit.objects.filter(pk__in=updated_reviews).update(review_status=review_status) return render( diff --git a/commcare_connect/templates/opportunity/user_visit_review.html b/commcare_connect/templates/opportunity/user_visit_review.html index 5f04d07b..b5964da2 100644 --- a/commcare_connect/templates/opportunity/user_visit_review.html +++ b/commcare_connect/templates/opportunity/user_visit_review.html @@ -39,8 +39,8 @@

User Visit Review