1 from django.contrib import admin
2 from django.utils.translation import ugettext_lazy as _
4 from toolbar import models
6 #class ButtonGroupAdmin(admin.ModelAdmin):
7 # list_display = ('name', 'slug', 'position',)
8 # search_fields = ('name', 'slug',)
9 # prepopulated_fields = {'slug': ('name',)}
10 # list_editable = ('position',)
11 admin.site.register(models.ButtonGroup)
13 #class ButtonAdmin(admin.ModelAdmin):
14 # list_display = ('label', 'action', 'key', 'position',)
15 # list_filter = ('group',)
16 # search_fields = ('label', 'action', 'key',)
17 # filter_horizontal = ('group',)
18 # list_editable = ('position',)
20 admin.site.register(models.Button)