refactor: Explicitly allow name=None for a couple of views

This commit is contained in:
Jennifer Richards 2023-05-10 17:16:20 -03:00
parent 163479bc06
commit 4f443cc445
No known key found for this signature in database
GPG key ID: 9B2BF5C5ADDA6A6E
2 changed files with 2 additions and 2 deletions

View file

@ -531,7 +531,7 @@ def rfc_status_changes(request):
)
@role_required("Area Director","Secretariat")
def start_rfc_status_change(request,name):
def start_rfc_status_change(request, name=None):
"""Start the RFC status change review process, setting the initial shepherding AD, and possibly putting the review on a telechat."""
if name:

View file

@ -2730,7 +2730,7 @@ def upload_session_agenda(request, session_id, num):
})
def upload_session_slides(request, session_id, num, name):
def upload_session_slides(request, session_id, num, name=None):
# num is redundant, but we're dragging it along an artifact of where we are in the current URL structure
session = get_object_or_404(Session,pk=session_id)
if not session.can_manage_materials(request.user):