Merge "Adds default for resource_type_names in metadata"

This commit is contained in:
Jenkins 2015-02-15 00:42:05 +00:00 committed by Gerrit Code Review
commit 37b9095ab7

View File

@ -133,7 +133,7 @@ class AdminNamespacesTable(tables.DataTable):
form_field=forms.CharField(widget=forms.Textarea(), required=False), form_field=forms.CharField(widget=forms.Textarea(), required=False),
truncate=200) truncate=200)
resource_type_names = tables.Column( resource_type_names = tables.Column(
"resource_type_names", lambda obj: getattr(obj, 'resource_type_names', []),
verbose_name=_("Resource Types"), verbose_name=_("Resource Types"),
wrap_list=True, wrap_list=True,
filters=(filters.unordered_list,)) filters=(filters.unordered_list,))