avoid deprecation warnings for get_query_set in django master/1.7