X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/1f74e9a6dc7dd2303f3271ccf4c7a3eb59e3e27e..357027375ff8867f42ca34bcbfb5a78b5b185fc3:/apps/sponsors/admin.py?ds=inline diff --git a/apps/sponsors/admin.py b/apps/sponsors/admin.py deleted file mode 100644 index f8e280104..000000000 --- a/apps/sponsors/admin.py +++ /dev/null @@ -1,29 +0,0 @@ -# -*- 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 sponsors import models -from sponsors import fields -from sponsors import widgets - - -class SponsorAdmin(admin.ModelAdmin): - list_display = ('name',) - search_fields = ('name',) - ordering = ('name',) - - -class SponsorPageAdmin(admin.ModelAdmin): - formfield_overrides = { - fields.JSONField: {'widget': widgets.SponsorPageWidget}, - } - list_display = ('name',) - search_fields = ('name',) - ordering = ('name',) - - -admin.site.register(models.Sponsor, SponsorAdmin) -admin.site.register(models.SponsorPage, SponsorPageAdmin)