From d95378198a7c805b4b673004e8659f3f38fb5a17 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Sun, 13 Nov 2022 10:16:19 -0600 Subject: bdgt: added admin for payment method --- app/budget/admin.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'app/budget') diff --git a/app/budget/admin.py b/app/budget/admin.py index 3ab7d28..bfb3112 100644 --- a/app/budget/admin.py +++ b/app/budget/admin.py @@ -1,5 +1,5 @@ from django.contrib import admin -from .models import LuxSource, LuxPurchase, LuxSpendingCategory, LuxFixedMonthly +from .models import LuxSource, LuxPurchase, LuxSpendingCategory, LuxFixedMonthly, LuxPaymentMethod @admin.register(LuxSpendingCategory) @@ -25,3 +25,8 @@ class PurchaseAdmin(admin.ModelAdmin): @admin.register(LuxFixedMonthly) class LuxFixedMonthlyAdmin(admin.ModelAdmin): list_display = ('name', 'amount') + + +@admin.register(LuxPaymentMethod) +class LuxPaymentMethodAdmin(admin.ModelAdmin): + list_display = ('name') -- cgit v1.2.3-70-g09d2