+# -*- 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
class SponsorPageAdmin(admin.ModelAdmin):
formfield_overrides = {
- fields.JSONField: {'widget': widgets.SponsorPageWidget},
- }
+ JSONField: {'widget': widgets.SponsorPageWidget},
+ }
list_display = ('name',)
search_fields = ('name',)
ordering = ('name',)