fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
collect static in fab
[wolnelektury.git]
/
apps
/
sponsors
/
admin.py
diff --git
a/apps/sponsors/admin.py
b/apps/sponsors/admin.py
index
f8e2801
..
274fe90
100644
(file)
--- a/
apps/sponsors/admin.py
+++ b/
apps/sponsors/admin.py
@@
-3,10
+3,8
@@
# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
#
from django.contrib import admin
# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
#
from django.contrib import admin
-from django.conf import settings
-
+from jsonfield import JSONField
from sponsors import models
from sponsors import models
-from sponsors import fields
from sponsors import widgets
from sponsors import widgets
@@
-18,8
+16,8
@@
class SponsorAdmin(admin.ModelAdmin):
class SponsorPageAdmin(admin.ModelAdmin):
formfield_overrides = {
class SponsorPageAdmin(admin.ModelAdmin):
formfield_overrides = {
-
fields.
JSONField: {'widget': widgets.SponsorPageWidget},
- }
+ JSONField: {'widget': widgets.SponsorPageWidget},
+ }
list_display = ('name',)
search_fields = ('name',)
ordering = ('name',)
list_display = ('name',)
search_fields = ('name',)
ordering = ('name',)