Example #1
0
    def get_serializer_context(self, *args, **kwargs):
        context = super().get_serializer_context(*args, **kwargs)
        context.update({
            'published_course_runs_only': get_query_param(self.request, 'published_course_runs_only'),
            'exclude_utm': get_query_param(self.request, 'exclude_utm'),
        })

        return context
Example #2
0
    def get_serializer_context(self, *args, **kwargs):
        context = super().get_serializer_context(*args, **kwargs)
        context.update({
            'exclude_utm': get_query_param(self.request, 'exclude_utm'),
            'include_deleted_programs': get_query_param(self.request, 'include_deleted_programs'),
        })

        return context
Example #3
0
    def get_serializer_context(self, *args, **kwargs):
        context = super().get_serializer_context(*args, **kwargs)
        context.update(
            {
                "exclude_utm": get_query_param(self.request, "exclude_utm"),
                "include_deleted_programs": get_query_param(self.request, "include_deleted_programs"),
                "include_unpublished_programs": get_query_param(self.request, "include_unpublished_programs"),
            }
        )

        return context