From 955bf189c41ed9ff4281689b14e1f98cf83b78a1 Mon Sep 17 00:00:00 2001 From: Sanj Date: Sat, 18 Feb 2012 20:21:01 +0530 Subject: [PATCH] admin reflect field name changes --- manifests/ships/admin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manifests/ships/admin.py b/manifests/ships/admin.py index 49b2c50..c249745 100644 --- a/manifests/ships/admin.py +++ b/manifests/ships/admin.py @@ -10,12 +10,12 @@ class GoodInline(admin.TabularInline): class ShipAdmin(admin.ModelAdmin): inlines = [GoodInline] - search_fields = ['ship_name', 'ship_name_trans', 'port'] + search_fields = ['ship_name', 'ship_name_trans', 'port', 'good__description_string_trans', 'good__description_string'] list_filter = ('bill_type', 'manifest_file',) list_display = ('__unicode__', 'bill_type', 'number', 'date', 'flag', 'captain', 'owner', 'port', 'country', 'no_of_goods',) class GoodAdmin(admin.ModelAdmin): - search_fields = ['description', 'description_trans'] + search_fields = ['description_string', 'description_string_trans'] class TranslationAdmin(admin.ModelAdmin):