diff --git a/openedx/core/djangoapps/appsembler/api/v1/views.py b/openedx/core/djangoapps/appsembler/api/v1/views.py index 84b8c95fd5e1..e3a8409893c3 100644 --- a/openedx/core/djangoapps/appsembler/api/v1/views.py +++ b/openedx/core/djangoapps/appsembler/api/v1/views.py @@ -236,7 +236,7 @@ def _normalize_bool_param(self, unnormalized): normalized = str(unnormalized).lower() if normalized not in ['false', 'true']: raise ValidationError('invalid value {unnormalized} for boolean type'.format(unnormalized)) - return True if value == 'true' else False + return True if normalized == 'true' else False class CourseViewSet(TahoeAuthMixin, viewsets.ReadOnlyModelViewSet):