X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/d5da2664b063711aee28851f41062e3666963fb3..0e79f07515678e3e678c3637124a27cb81ee8a94:/apps/sponsors/admin.py?ds=inline diff --git a/apps/sponsors/admin.py b/apps/sponsors/admin.py index 55af9d764..274fe901e 100644 --- a/apps/sponsors/admin.py +++ b/apps/sponsors/admin.py @@ -1,8 +1,10 @@ +# -*- coding: utf-8 -*- +# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. +# 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 @@ -14,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',)