2023-05-04 11:06:04 +09:00
|
|
|
from django.contrib import admin
|
|
|
|
|
2023-06-23 02:09:00 +09:00
|
|
|
from .models import Transaction, MonthlyTransaction
|
|
|
|
|
|
|
|
admin.site.register(Transaction)
|
2023-11-13 19:52:35 +09:00
|
|
|
|
|
|
|
|
|
|
|
@admin.register(MonthlyTransaction)
|
|
|
|
class MonthlyTransactionAdmin(admin.ModelAdmin):
|
|
|
|
list_display = ("product", "year", "month", "price")
|
|
|
|
list_filter = ("year", "month")
|
|
|
|
search_fields = ("product",)
|