diff options
author | luxagraf <sng@luxagraf.net> | 2022-11-12 12:03:10 -0600 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2022-11-12 12:03:10 -0600 |
commit | 2cbd148476ecd05ddf2333353508a048386ba02b (patch) | |
tree | b46457824e0fa38ccc05cc913437207b40bad930 /app/budget | |
parent | ec1043d50c9b0731a221c35d0a92a7629324003a (diff) |
bdgt: added category to admin
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' ) |