summaryrefslogtreecommitdiff
path: root/app/budget/admin.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/budget/admin.py')
-rw-r--r--app/budget/admin.py32
1 files changed, 0 insertions, 32 deletions
diff --git a/app/budget/admin.py b/app/budget/admin.py
deleted file mode 100644
index 0f578fb..0000000
--- a/app/budget/admin.py
+++ /dev/null
@@ -1,32 +0,0 @@
-from django.contrib import admin
-from .models import LuxSource, LuxPurchase, LuxSpendingCategory, LuxFixedMonthly, LuxPaymentMethod
-
-
-@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' )
- search_fields = ['source', 'amount']
- list_filter = ('category',)
-
- class Media:
- js = ('next-prev-links.js',)
-
-
-@admin.register(LuxFixedMonthly)
-class LuxFixedMonthlyAdmin(admin.ModelAdmin):
- list_display = ('name', 'amount', 'category', 'payment_method')
-
-
-@admin.register(LuxPaymentMethod)
-class LuxPaymentMethodAdmin(admin.ModelAdmin):
- list_display = ('name',)