X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/1f74e9a6dc7dd2303f3271ccf4c7a3eb59e3e27e..2bdee8a54239c9020e2539c8ad0f1d34f7c5c7dc:/apps/sponsors/admin.py diff --git a/apps/sponsors/admin.py b/apps/sponsors/admin.py index f8e280104..274fe901e 100644 --- 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 -from django.conf import settings - +from jsonfield import JSONField from sponsors import models -from sponsors import fields from sponsors import widgets @@ -18,8 +16,8 @@ class SponsorAdmin(admin.ModelAdmin): class SponsorPageAdmin(admin.ModelAdmin): formfield_overrides = { - fields.JSONField: {'widget': widgets.SponsorPageWidget}, - } + JSONField: {'widget': widgets.SponsorPageWidget}, + } list_display = ('name',) search_fields = ('name',) ordering = ('name',)