from django.contrib import admin from .models import Expense class ExpenseAdmin(admin.ModelAdmin): list_display = ('name', 'category', 'amount', 'date_month') list_filter = ('date', 'category') admin.site.register(Expense, ExpenseAdmin)