X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/ae60b2a3949e96357477cc04f90fd0873cee8a92..ec4c9d6d4e2ce8c31123c48fb140b1d75e762155:/src/sponsors/admin.py?ds=inline diff --git a/src/sponsors/admin.py b/src/sponsors/admin.py index 274fe901e..df11973e6 100644 --- a/src/sponsors/admin.py +++ b/src/sponsors/admin.py @@ -1,9 +1,8 @@ -# -*- 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 jsonfield import JSONField +from django.db.models import TextField from sponsors import models from sponsors import widgets @@ -16,7 +15,7 @@ class SponsorAdmin(admin.ModelAdmin): class SponsorPageAdmin(admin.ModelAdmin): formfield_overrides = { - JSONField: {'widget': widgets.SponsorPageWidget}, + TextField: {'widget': widgets.SponsorPageWidget}, } list_display = ('name',) search_fields = ('name',)