Fix url_for for admin panel submission pagination

fix-submission-type-pagination
Kevin Chung 2020-05-05 15:52:45 -04:00
parent dcfa02877d
commit 73e387524a
1 changed files with 2 additions and 2 deletions

View File

@ -54,10 +54,10 @@ def submissions_listing(submission_type):
"admin/submissions.html",
submissions=submissions,
prev_page=url_for(
request.endpoint, type=submission_type, page=submissions.prev_num, **args
request.endpoint, submission_type=submission_type, page=submissions.prev_num, **args
),
next_page=url_for(
request.endpoint, type=submission_type, page=submissions.next_num, **args
request.endpoint, submission_type=submission_type, page=submissions.next_num, **args
),
type=submission_type,
q=q,