Bearle/django_mail_admin

allow to use complex objects (even django models) as TemplateVariable value

Opened this issue · 0 comments

Right now TemplateVariable values are casted to string (variables.append(TemplateVariable(name=k, value=str(v), email=email))). Need to use json.dumps here, or some methods from django.core.serializers module.