FYI-- this can be simplified to self.course_locator.url_reverse('course'). No need to change, just wanted to let you know.