Fixed #21430 -- Warning raised when unpickling Models and QuerySet from ...

...different versions.

Thanks akaariai, loic, charettes for help.