mirror of
https://github.com/Lyxminxx/jast.git
synced 2026-10-11 20:57:43 +02:00
13 lines
317 B
Python
13 lines
317 B
Python
from django.contrib import admin
|
|
from .models import Transaction, Category
|
|
|
|
admin.site.register(Category)
|
|
|
|
@admin.register(Transaction)
|
|
class TransactionAdmin(admin.ModelAdmin):
|
|
list_display = ('date', 'title', 'amount', 'category')
|
|
|
|
list_filter = ('category', 'date')
|
|
|
|
search_fields = ('title',)
|