blob: 28c8869d36b9ccea4a1ab0be25fb2fbe1c0c9dc5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
from django.contrib import admin
from .models import Expense, Trip
class TripAdmin(admin.ModelAdmin):
list_display = ('name', 'start')
class ExpenseAdmin(admin.ModelAdmin):
list_display = ('name', 'category', 'amount', 'date_month')
list_filter = ('date', 'category')
admin.site.register(Expense, ExpenseAdmin)
admin.site.register(Trip, TripAdmin)
|