1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

Fixed #8408 -- Added ModelAdmin.show_full_result_count to avoid COUNT() query.

Thanks lidaobing for the suggestion.
This commit is contained in:
Thomas Chaumeny
2014-09-22 18:46:43 +02:00
committed by Tim Graham
parent d1ca70110f
commit 17557d068c
8 changed files with 50 additions and 7 deletions

View File

@@ -327,6 +327,7 @@ class LanguageAdmin(admin.ModelAdmin):
class RecommendationAdmin(admin.ModelAdmin):
show_full_result_count = False
search_fields = ('=titletranslation__text', '=recommender__titletranslation__text',)