from django.contrib import admin from .models import LuxExpense, Trip, Expense, Month @admin.register(Trip) class TripAdmin(admin.ModelAdmin): list_display = ('name', 'start') @admin.register(Expense) class ExpenseAdmin(admin.ModelAdmin): list_display = ('name', 'category', 'amount', 'date_month') list_filter = ('date', 'category') @admin.register(LuxExpense) class LuxExpenseAdmin(admin.ModelAdmin): list_display = ('category', 'amount', 'month') list_filter = ('month', 'category') @admin.register(Month) class MonthAdmin(admin.ModelAdmin): pass