Commit 91583819 authored by Matheus Miranda's avatar Matheus Miranda
Browse files

Get always the certicate template

parent d9ab150e
......@@ -72,7 +72,7 @@ class CourseSerializer(serializers.ModelSerializer):
return {}
def get_ct_id(self, obj):
ct = CertificateTemplate.objects.filter(course=obj).first()
ct = CertificateTemplate.objects.filter(course=obj, document_type='certificate').first()
if ct:
return ct.id
return None
......
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