From: Radek Czajka Date: Wed, 26 May 2021 12:36:59 +0000 (+0200) Subject: Filter schedules by source. X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/cbe7ef2f04d751e6f719299632d77cfcb29be8f1?hp=7875aab03fcc043840567f873c9e38e4ee9f638c Filter schedules by source. --- diff --git a/src/club/admin.py b/src/club/admin.py index 0cf7d342c..0a23c20cf 100644 --- a/src/club/admin.py +++ b/src/club/admin.py @@ -57,7 +57,7 @@ class ExpiredFilter(YesNoFilter): class ScheduleAdmin(admin.ModelAdmin): list_display = ['email', 'started_at', 'payed_at', 'expires_at', 'amount', 'monthly', 'yearly', 'is_cancelled'] search_fields = ['email'] - list_filter = ['is_cancelled', 'monthly', 'yearly', PayedFilter, ExpiredFilter] + list_filter = ['is_cancelled', 'monthly', 'yearly', PayedFilter, ExpiredFilter, 'source'] date_hierarchy = 'started_at' raw_id_fields = ['membership'] inlines = [PayUOrderInline, PayUCardTokenInline]