Remove name field. Rename title field to label.

This commit is contained in:
Roberto Rosario
2015-07-07 21:04:00 -04:00
parent efad777656
commit ab2d4537dc
7 changed files with 45 additions and 14 deletions

View File

@@ -15,7 +15,7 @@ class IndexTemplateNodeInline(admin.StackedInline):
class IndexAdmin(admin.ModelAdmin):
filter_horizontal = ('document_types',)
inlines = [IndexTemplateNodeInline]
list_display = ('name', 'title', 'enabled', 'get_document_types')
list_display = ('label', 'enabled', 'get_document_types')
def get_document_types(self, instance):
return ', '.join(['"{0}"'.format(document_type) for document_type in instance.document_types.all()]) or _('None')