mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
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
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user