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

Thanks @charettes @akaariai @loic for help.
Yeah, I figured that. Also the warning is nor raised at correct place..