admin reflect field name changes
This commit is contained in:
parent
718f7c1332
commit
955bf189c4
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user