diff options
| author | Ramiro Morales <cramm0@gmail.com> | 2011-03-01 02:04:35 +0000 |
|---|---|---|
| committer | Ramiro Morales <cramm0@gmail.com> | 2011-03-01 02:04:35 +0000 |
| commit | bd3b5e8c2b36633134ab63e5a6af7b5f5839a7c4 (patch) | |
| tree | 2339321e1ef30ec25d9c2a1a24b3c2b2fc7e02fc /tests/regressiontests/admin_views/models.py | |
| parent | b1a0ad007966898c305f4823c590a3e808095e9a (diff) | |
Fixed #15517 -- Fixed regression in admin search_fields option introduced in r15526. Thanks Fabian Buechler for the report and fix and Julien Phalip for adding tests.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15677 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/regressiontests/admin_views/models.py')
| -rw-r--r-- | tests/regressiontests/admin_views/models.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/regressiontests/admin_views/models.py b/tests/regressiontests/admin_views/models.py index 9ac99cc9ef..3b44f94d8b 100644 --- a/tests/regressiontests/admin_views/models.py +++ b/tests/regressiontests/admin_views/models.py @@ -258,7 +258,7 @@ class PersonAdmin(admin.ModelAdmin): list_display = ('name', 'gender', 'alive') list_editable = ('gender', 'alive') list_filter = ('gender',) - search_fields = (u'name',) + search_fields = ('^name',) ordering = ["id"] save_as = True @@ -445,7 +445,7 @@ class Recommendation(Title): recommender = models.ForeignKey(Recommender) class RecommendationAdmin(admin.ModelAdmin): - search_fields = ('titletranslation__text', 'recommender__titletranslation__text',) + search_fields = ('=titletranslation__text', '=recommender__titletranslation__text',) class Collector(models.Model): name = models.CharField(max_length=100) |
