Commit 02cf9c28 authored by Matheus Miranda's avatar Matheus Miranda
Browse files

Add name for default certificates

parent dca44dcb
......@@ -27,7 +27,7 @@ def course_created(sender, created, instance, **kwargs):
instance.save()
for type_ in CertificateTemplate.TYPES:
ct = CertificateTemplate(course=instance, document_type=type_[0])
ct = CertificateTemplate(course=instance, document_type=type_[0], name='Base ' + instance.name)
ct.save()
else:
foruns = Forum.objects.filter(id=instance.forum.id)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment