Remove name field. Rename title field to label.
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user