'Set course sharing urls (i.e. social_sharing_url, marketing_url)'

def set_course_sharing_urls(self, set_marketing, set_social_sharing):

    course_overview = self.course_enrollment.course_overview
    if set_marketing:
        course_overview.marketing_url = 'http://www.testurl.com/marketing/url/'
    if set_social_sharing:
        course_overview.social_sharing_url = 'http://www.testurl.com/social/url/'
    course_overview.save()
