AmiiboShop filter_horizontal

This commit is contained in:
Felipe Martín 2015-09-11 08:30:56 +02:00
parent f1bef0ac96
commit b39caf6708
1 changed files with 2 additions and 1 deletions

View File

@ -89,7 +89,8 @@ class AmiiboShopAdmin(ImportExportModelAdmin, reversion.VersionAdmin):
list_display = ('amiibos_names', 'shop_name', 'shop', 'check_price')
list_filter = ('shop', 'shop_name', )
list_editable = ('check_price', )
filter_horizontal = ('amiibo', )
def amiibos_names(self, obj):
return ", ".join(obj.amiibo.all().values_list('name_eu', flat=True))