2016-07-02 13:58:50 +00:00
|
|
|
from django.contrib import admin
|
|
|
|
|
2016-07-02 15:58:04 +00:00
|
|
|
from .models import Facture, Article, Banque, Paiement
|
|
|
|
|
|
|
|
class FactureAdmin(admin.ModelAdmin):
|
|
|
|
list_display = ('user','paiement','name', 'number', 'date')
|
|
|
|
|
|
|
|
class ArticleAdmin(admin.ModelAdmin):
|
|
|
|
list_display = ('name','prix')
|
|
|
|
|
|
|
|
class BanqueAdmin(admin.ModelAdmin):
|
|
|
|
list_display = ('name',)
|
|
|
|
|
|
|
|
class PaiementAdmin(admin.ModelAdmin):
|
|
|
|
list_display = ('moyen',)
|
|
|
|
|
|
|
|
admin.site.register(Facture, FactureAdmin)
|
|
|
|
admin.site.register(Article, ArticleAdmin)
|
|
|
|
admin.site.register(Banque, BanqueAdmin)
|
|
|
|
admin.site.register(Paiement, PaiementAdmin)
|