feat: Implement generation of regular V2 course certificates (#27189)

MICROBA-1039
This commit is contained in:
Christie Rice
2021-03-31 14:12:19 -04:00
committed by GitHub
parent 11b9a595eb
commit 8f50edea6f
8 changed files with 121 additions and 61 deletions

View File

@@ -1583,7 +1583,7 @@ def generate_user_cert(request, course_id):
if certs_api.can_generate_certificate_task(student, course_key):
log.info(f'{course_key} is using V2 certificates. Attempt will be made to generate a V2 certificate for '
f'user {student.id}.')
certs_api.generate_certificate_task(student, course_key)
certs_api.generate_certificate_task(student, course_key, 'self')
return HttpResponse()
if not is_course_passed(student, course):