'Get the representation for SerializerMethodField `blocks_url`'

def get_blocks_url(self, course_overview):

    base_url = '?'.join([reverse('blocks_in_course'), urllib.urlencode({'course_id': course_overview.id})])
    return self.context['request'].build_absolute_uri(base_url)
