# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
#
from django.contrib import admin
-from django.utils.translation import ugettext_lazy as _
+from django.utils.translation import gettext_lazy as _
from django import forms
import json
class ButtonAdmin(admin.ModelAdmin):
form = ButtonAdminForm
- list_display = ('slug', 'label', 'tooltip', 'accesskey')
+ list_display = ('slug', 'label', 'tooltip', 'accesskey', 'scriptlet')
list_display_links = ('slug',)
list_editable = ('label', 'tooltip', 'accesskey')
prepopulated_fields = {'slug': ('label',)}