X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/9c5d9a4e77a10b4e60d89d3890e49002bd7f3993..f2e5eb8d76c57ee0198207e68a198d2b9cfd6fec:/apps/sponsors/admin.py?ds=sidebyside diff --git a/apps/sponsors/admin.py b/apps/sponsors/admin.py index 897c22159..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,7 +16,7 @@ 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',)