tatterdemalion / django-nece

Content Translation Framework based on Postgresql's JSONB field
BSD 3-Clause "New" or "Revised" License
83 stars 25 forks source link

fix pickling by using a conventional class instead of namedtuple #8

Closed tatterdemalion closed 8 years ago

tatterdemalion commented 8 years ago

PicklingError: Can't pickle <class 'nece.models.Language'>: it's not found as nece.models.Language

pickle tries to find a Language class in the module but namedtuple's are created on the fly. This is a quick&dirty solution to the problem. It may not be as optimized as namedtuple's but fixes the problem at the moment. We may need to refactor the code in the future.

coveralls commented 8 years ago

Coverage Status

Changes Unknown when pulling 2a04a705a3808aff25703edf176ade98baad98c0 on fix_pickling into \ on master**.