def get_redirect_url_for_global_staff(course_key, _next):
 redirect_url = '{url}?next={redirect}'.format(url=reverse('enroll_staff', args=[unicode(course_key)]), redirect=_next)
 return redirect_url

def get_redirect_url_for_global_staff ( course_key , _next ) : redirect_url = '{url}?next={redirect}' . format ( url = reverse ( 'enroll_staff' , args = [ unicode ( course_key ) ] ) , redirect = _next ) return redirect_url
returns the redirect url for staff enrollment args: course_key: course key string _next: redirect url of course component .