X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/c48ff2d3e64065793c24cfb8ae151f02b8e6646a..022b1747124fb6b6314c4eccf98d5bf89dff5d25:/src/toolbar/admin.py diff --git a/src/toolbar/admin.py b/src/toolbar/admin.py index 0cfc1886..cb6de45c 100644 --- a/src/toolbar/admin.py +++ b/src/toolbar/admin.py @@ -2,7 +2,7 @@ # 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 @@ -24,7 +24,7 @@ class ButtonAdminForm(forms.ModelForm): 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',)}