﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
27187	Django 1.10 is unable to unpickle models pickled in Django pre-1.10	Claude Paroz	nobody	"Commit [7f51876f99851fdc3fef63aecdfbcffa199c26b9] changed the unpickle strategy for models. Now when I have old pickled models (for example in a queue) that I'm trying to unpickle with Django 1.10, I'm getting those errors:

{{{
UnpickleError at /django-rq/queues/1/
(u'Could not unpickle', AttributeError(""'module' object has no attribute 'simple_class_factory'"",))
}}}
And if I manually re-introduce `simple_class_factory`, I'm then getting:
{{{
UnpickleError at /django-rq/queues/1/
(u'Could not unpickle', TypeError('model_unpickle() takes exactly 1 argument (3 given)', <function model_unpickle at 0x7f921ddc8578>, (('accounts', 'BDNUser'), [], <function simple_class_factory at 0x7f921ddc8500>)))
}}}

Which could be solved by adding `*args` to `model_unpickle`.
What about adding some compatibility shims during one or two releases?"	Bug	closed	Database layer (models, ORM)	1.10	Normal	needsinfo			Unreviewed	0	0	0	0	0	0
