﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
7113	The `ChangeList` does not support custom queryset subclasses	jbronn	Malcolm Tredinnick	"Custom `QuerySet` classes (like !GeoDjango's `GeoQuerySet`) [http://code.djangoproject.com/browser/django/trunk/django/db/models/query.py#L494 can't be merged] with regular `QuerySet` objects (using `|`, `&` operators).  This problem manifests itself when trying to use search fields with a model that uses a `QuerySet` subclass:
{{{
TypeError ...
Cannot merge querysets of different types ('GeoQuerySet' and 'QuerySet'.
}}}

The root cause is that `ChangeList` [http://code.djangoproject.com/browser/django/branches/newforms-admin/django/contrib/admin/views/main.py#L303 hard-codes using QuerySet] for the search fields.

In my patch `ChangeList` takes advantage of existing information to determine the type of queryset being used and store it in a `root_query_set_class` attribute that is used when performing searches."		closed	contrib.admin	dev		fixed	admin changelist queryset custom	andrew@…	Accepted	1	0	0	0	0	0
