django-modeltranslation icon indicating copy to clipboard operation
django-modeltranslation copied to clipboard

ModelTranslation objects can not pickled.

Open miratcan opened this issue 10 years ago • 1 comments

For some reaseon I've tried to cache a queryset and I realised that it can not be done because of pickle.

from pickle import dumps
dumps(TranslatedModel.objects.all())
...
...
Error: Can't pickle <class 'modeltranslation.manager.MultilingualTranslatedModelQuerySet'>: it's not found as modeltranslation.manager.MultilingualTranslatedModelQuerySet

miratcan avatar Sep 18 '15 11:09 miratcan

Well, I created test case for pickling a model with custom Manager using custom Queryset - and it's passing.

Can you provide more details about Python, Django and MT versions? Maybe a code for TranslatedModel as well?

zlorf avatar Sep 27 '15 16:09 zlorf