X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/dac9a35e0d86c0ec50f33d69d73be5d7ae7ae7ef..ef759fbfa694cdddd1b24027a6f8792302add9b8:/apps/funding/admin.py diff --git a/apps/funding/admin.py b/apps/funding/admin.py index b9fc8c97c..c8a25d013 100644 --- a/apps/funding/admin.py +++ b/apps/funding/admin.py @@ -1,16 +1,21 @@ +# -*- 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 .models import Offer, Perk, Funding, Spent class OfferAdmin(admin.ModelAdmin): model = Offer - list_display = ['title', 'author', 'target', 'sum', 'is_win', 'start', 'end', 'due'] + list_display = ['title', 'author', 'target', 'sum', 'is_win', 'start', 'end'] search_fields = ['title', 'author'] + readonly_fields = ('cover_img_tag',) class PerkAdmin(admin.ModelAdmin): model = Perk - list_display = ['name', 'price', 'end_date', 'offer'] + list_display = ['name', 'long_name', 'price', 'end_date', 'offer'] class FundingAdmin(admin.ModelAdmin):