Remove remaining usage of lists for extra_column.

This commit is contained in:
Roberto Rosario
2015-08-20 00:44:24 -04:00
parent a39470b622
commit cc2927c4cd
3 changed files with 13 additions and 11 deletions

View File

@@ -27,12 +27,12 @@ class ResultsView(SingleObjectListView):
if setting_show_object_type.value:
context.update({
'extra_columns': [
'extra_columns': (
{
'name': _('Type'),
'attribute': lambda x: x._meta.verbose_name[0].upper() + x._meta.verbose_name[1:]
}
]
},
)
})
return context