fix: RegexPattern, used by re_path(), no longer returns keyword arguments with None values to be passed to the view for the optional named groups that are missing.

BOM-2793
This commit is contained in:
Awais Qureshi
2021-09-10 16:51:13 +05:00
parent 475a6af2af
commit 8f2a4f87fb

View File

@@ -114,7 +114,7 @@ def _is_library_component_limit_reached(usage_key):
@require_http_methods(("DELETE", "GET", "PUT", "POST", "PATCH"))
@login_required
@expect_json
def xblock_handler(request, usage_key_string):
def xblock_handler(request, usage_key_string=None):
"""
The restful handler for xblock requests.