Can't pickle translation model
piotrkilczuk opened this issue · comments
When I try to save a Queryset containing multilingual data in Django cache, I get PicklingError
For example:
Request Method: GET
Request URL: http://somewhere/
Django Version: 1.2.3
Exception Type: PicklingError
Exception Value: Can't pickle <class 'cinema_database.models.MovieTranslation'>: attribute lookup cinema_database.models.MovieTranslation failed
Exception Location: /somewhere/_env/lib/python2.6/site-packages/memcache.py in _val_to_store_info, line 697
Python Executable: /usr/bin/python
Python Version: 2.6.5
This probably will never be solved, because translation classes are created dynamically and thus they are not able to be pickled.