class UnsplitableUnicode(str):
    """An object that behaves like a unicode string but cannot be split()"""

def split(self, *args, **kwargs):
    return [self]


class MultiWordSearchChangeList(ChangeList):
    """Changelist that allows searches to contain spaces"""

def get_query_set(self, request):
    self.query = UnsplitableUnicode(self.query)
return super(MultiWordSearchChangeList, self).get_query_set(request)


class FooAdmin(admin.ModelAdmin):

    def get_changelist(self, request, **kwargs):
        return MultiWordSearchChangeList
Поиск администратора django по нескольким словам