KristianOellegaard/django-hvad — pull request #25 by clelland (2012-02-20 18:52:30+00:00)
Title: Allow translated models to be pickled and unpickled

Because the TranslationModel created for each TranslatableModel is not defined at the top level of a module, the Python pickler refuses to serialize models which have been translated.

This patch collects the translated fields, if any, at pickling time, and stores them in a separate dictionary. When unpickling, it creates a new TranslationModel for the restored fields.