diff options
Diffstat (limited to 'app/budget')
-rw-r--r-- | app/budget/admin.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app/budget/admin.py b/app/budget/admin.py index fc84fa0..3b2c0ac 100644 --- a/app/budget/admin.py +++ b/app/budget/admin.py @@ -1,12 +1,18 @@ from django.contrib import admin -from .models import LuxSource, LuxPurchase +from .models import LuxSource, LuxPurchase, LuxSpendingCategory + + +@admin.register(LuxSpendingCategory) +class SourceAdmin(admin.ModelAdmin): + list_display = ('name',) @admin.register(LuxSource) class SourceAdmin(admin.ModelAdmin): list_display = ('name',) + @admin.register(LuxPurchase) class PurchaseAdmin(admin.ModelAdmin): list_display = ('source', 'amount', 'category' ) |