nk20/apps/treasury/admin.py

17 lines
414 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-22 00:22:27 +00:00
from .models import Invoice, Product
2020-03-21 15:49:18 +00:00
2020-03-22 00:22:27 +00:00
@admin.register(Invoice)
class InvoiceAdmin(admin.ModelAdmin):
2020-03-22 14:24:54 +00:00
list_display = ('id', 'name', 'object', 'acquitted', )
2020-03-21 15:49:18 +00:00
@admin.register(Product)
class ProductAdmin(admin.ModelAdmin):
list_display = ('designation', 'quantity', 'amount', )