artemrizhov/django-mail-templated — pull request #4 by MrHaas (2012-09-13 11:41:04+00:00)
Title: Support for pickling/unpickling

When using mail-templated in combination with the [Celery Email Backend](https://bitbucket.org/pmclanahan/django-celery-email), an error occured because the ```BlockNode``` and ```Template``` objects (```_subject```, ```_body```, ```_html```, ```_template```) can't be pickled.

I added the ```__getstate__``` and ```__setstate__``` functions to exclude the concerning properties from pickling and restoring them on unpickling.

I hope you'll accept this request, so I can use the PyPi version again ;).