توی پایتون نسخه 3.2 برای list_display مربوط به ForeignKeyها نمیتونیم مثلا از 'category__name' استفاده کنیم.
بجاش باید از همچین متدی استفاده کنیم :
class ProductAdmin(admin.ModelAdmin):
list_display = ['upc', 'title', 'is_active',
'category_name',
'brand_name'
]
def category_name(self, instance):
return instance.category.name
def brand_name(self, instance):
return instance.brand.name