Initial commit

This commit is contained in:
Felix Baumann
2026-06-27 17:07:34 +00:00
commit fb47c53d52
256 changed files with 21270 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
from django.contrib import admin
from .models import Category, Supplier, PaymentMethod, Expense, Income
admin.site.register(Category)
admin.site.register(Supplier)
admin.site.register(PaymentMethod)
@admin.register(Expense)
class ExpenseAdmin(admin.ModelAdmin):
list_display = ("amount", "project", "category", "date", "created_by")
list_filter = ("project", "category", "date")
search_fields = (
"name",
"project__name",
)
@admin.register(Income)
class IncomeAdmin(admin.ModelAdmin):
list_display = ("amount", "project", "category", "date", "created_by")
list_filter = ("project", "category", "date")