def render(self, context, instance, placeholder):
context = super(GiftCertificateFormPlugin, self).render(context, instance, placeholder)<EOL>mode = getattr(settings,'<STR_LIT>', '<STR_LIT>')<EOL>if mode == '<STR_LIT>':<EOL><INDENT>mode = '<STR_LIT>'<EOL><DEDENT>context.update({<EOL>'<STR_LIT>': mode,<EOL>})<EOL>return context<EOL>
Create a UUID and check if a voucher with that ID exists before rendering