1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Fixed #10516 -- Corrected admin search when the search_fields definition contains multiple fields on the same base model. Thanks to Zain Memon for the patch.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@10684 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Russell Keith-Magee
2009-05-07 12:52:43 +00:00
parent e5757f9261
commit b5f0aff922
4 changed files with 143 additions and 4 deletions

View File

@@ -0,0 +1,107 @@
[
{
"pk": 1,
"model": "admin_views.title",
"fields":
{
}
},
{
"pk": 2,
"model": "admin_views.title",
"fields":
{
}
},
{
"pk": 3,
"model": "admin_views.title",
"fields":
{
}
},
{
"pk": 4,
"model": "admin_views.title",
"fields":
{
}
},
{
"pk": 1,
"model": "admin_views.titletranslation",
"fields":
{
"text": "Bar",
"title": 1
}
},
{
"pk": 2,
"model": "admin_views.titletranslation",
"fields":
{
"text": "Foo",
"title": 2
}
},
{
"pk": 3,
"model": "admin_views.titletranslation",
"fields":
{
"text": "Few",
"title": 3
}
},
{
"pk": 4,
"model": "admin_views.titletranslation",
"fields":
{
"text": "Bas",
"title": 4
}
},
{
"pk": 1,
"model": "admin_views.recommender",
"fields":
{
}
},
{
"pk": 4,
"model": "admin_views.recommender",
"fields":
{
}
},
{
"pk": 2,
"model": "admin_views.recommendation",
"fields":
{
"recommender": 1
}
},
{
"pk": 3,
"model": "admin_views.recommendation",
"fields":
{
"recommender": 4
}
}
]