added fallback to model_instance.pk if .values('pk') is not supported by the backend
added fallback to model_instance.pk if .values('pk') is not supported by the backend

django-nonrel/nonrel-search,adieu/nonrel-search,django-nonrel/nonrel-search,adieu/nonrel-search