Commits

Luke Plant  committed 35be684

Updated admin for CssClass to show more fields in change list and allow editing

  • Participants
  • Parent commits b5f3e58

Comments (0)

Files changed (1)

File semanticeditor/admin.py

     )
 
 class CssClassAdmin(admin.ModelAdmin):
-    list_display = ('verbose_name', 'name', 'category')
+    list_display = ('verbose_name', 'name', 'category', 'allowed_elements')
+    list_editable = ('name', 'category', 'allowed_elements')
 
 class CssClassCategoryAdmin(admin.ModelAdmin):
     inlines = [CssClassAdminInline,]