django-multilingual-ng icon indicating copy to clipboard operation
django-multilingual-ng copied to clipboard

Can't pickle translation model

Open piotrkilczuk opened this issue 15 years ago • 1 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

piotrkilczuk avatar Oct 06 '10 12:10 piotrkilczuk

This probably will never be solved, because translation classes are created dynamically and thus they are not able to be pickled.

ziima avatar Apr 23 '11 07:04 ziima