Fix BlockTransformer Py3 issues (#21376)
Django's reverse can handle Unicode for arguments.
This commit is contained in:
@@ -51,7 +51,7 @@ def handler_url(block, handler_name, suffix='', query='', thirdparty=False):
|
||||
|
||||
url = reverse(view_name, kwargs={
|
||||
'course_id': six.text_type(block.location.course_key),
|
||||
'usage_id': quote_slashes(six.text_type(block.scope_ids.usage_id).encode('utf-8')),
|
||||
'usage_id': quote_slashes(six.text_type(block.scope_ids.usage_id)),
|
||||
'handler': handler_name,
|
||||
'suffix': suffix,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user