houtmarkt-jeremy/markt/admin.py

42 lines
1002 B
Python
Raw Permalink Normal View History

2020-05-24 15:00:10 +00:00
from django.contrib import admin
2020-05-24 18:06:09 +00:00
from .models import Factuur, Formaat, Houtmarkt, Houtsoort, Klant, Voorraad, Order
@admin.register(Order)
class OrderAdmin(admin.ModelAdmin):
list_display = ("Order_ID", "Voorraad_ID", "Amount", "Prijs" )
2020-05-24 18:48:06 +00:00
2020-05-24 18:06:09 +00:00
@admin.register(Factuur)
class FactuurAdmin(admin.ModelAdmin):
2020-05-25 05:15:12 +00:00
list_display = ("Factuur_ID", "Klant_ID", "total" )
2020-05-24 18:06:09 +00:00
@admin.register(Formaat)
class FormaatAdmin(admin.ModelAdmin):
list_display = ("Format_ID", "Formaat")
@admin.register(Houtsoort)
class HoutsoortAdmin(admin.ModelAdmin):
list_display = ("Hout_ID", "Houtsoort_naam")
@admin.register(Houtmarkt)
class HoutmarktAdmin(admin.ModelAdmin):
list_display = ("Houtmarkt_ID", "Houtmarkt_naam")
@admin.register(Klant)
class KlantAdmin(admin.ModelAdmin):
list_display = ("Klant_ID", "Klant_naam")
@admin.register(Voorraad)
class VoorraadAdmin(admin.ModelAdmin):
list_display = ("Voorraad_ID", "Houtmarkt_ID","Hout_ID" , "Format_ID", "Prijs", "Voorraad_Amount" )