Allow queries on model refs