fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixes #4475: Split thema into separate fields.
[redakcja.git]
/
src
/
toolbar
/
admin.py
diff --git
a/src/toolbar/admin.py
b/src/toolbar/admin.py
index
9d3c68d
..
cb6de45
100644
(file)
--- a/
src/toolbar/admin.py
+++ b/
src/toolbar/admin.py
@@
-1,5
+1,8
@@
+# This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
+#
from django.contrib import admin
from django.contrib import admin
-from django.utils.translation import
u
gettext_lazy as _
+from django.utils.translation import gettext_lazy as _
from django import forms
import json
from django import forms
import json
@@
-21,7
+24,7
@@
class ButtonAdminForm(forms.ModelForm):
class ButtonAdmin(admin.ModelAdmin):
form = ButtonAdminForm
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',)}
list_display_links = ('slug',)
list_editable = ('label', 'tooltip', 'accesskey')
prepopulated_fields = {'slug': ('label',)}