nk20/apps/treasury/admin.py

17 lines
415 B
Python
Raw Normal View History

2020-03-21 15:49:18 +00:00
# Copyright (C) 2018-2020 by BDE ENS Paris-Saclay
# SPDX-License-Identifier: GPL-3.0-or-later
from django.contrib import admin
2020-03-21 16:29:39 +00:00
from .models import Billing, Product
2020-03-21 15:49:18 +00:00
@admin.register(Billing)
class BillingAdmin(admin.ModelAdmin):
list_display = ('id', 'name', 'subject', 'acquitted', )
@admin.register(Product)
class ProductAdmin(admin.ModelAdmin):
list_display = ('designation', 'quantity', 'amount', )