When the organization.logo is None, a <img> tag is rendered None actually. We do not want this anymore. We should trigger a message when generating the certificate's context if an organization does not have a logo for itself.
Proposal
[x] Update the certificate and degree HTML templates with a condition to verify if organization.logo has a value and add a logger.error in the get_document_context of a certificate if organization logo is None.
Purpose
When the
organization.logo
isNone
, a<img>
tag is renderedNone
actually. We do not want this anymore. We should trigger a message when generating the certificate's context if an organization does not have a logo for itself.Proposal
organization.logo
has a value and add alogger.error
in theget_document_context
of a certificate if organization logo isNone
.