|
|
|
@ -15,8 +15,14 @@ class ProductCategoryAdmin(admin.ModelAdmin):
@@ -15,8 +15,14 @@ class ProductCategoryAdmin(admin.ModelAdmin):
|
|
|
|
|
list_display = ('name', 'comment') |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class SalesLogEntryAdmin(admin.ModelAdmin): |
|
|
|
|
list_display = ('account', 'timestamp', 'product', 'count', 'unit_price') |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin.site.register(Account, AccountAdmin) |
|
|
|
|
admin.site.register(Product, ProductAdmin) |
|
|
|
|
admin.site.register(ProductBarcode) |
|
|
|
|
admin.site.register(ProductCategory, ProductCategoryAdmin) |
|
|
|
|
admin.site.register(Transaction) |
|
|
|
|
admin.site.register(SalesLogEntry, SalesLogEntryAdmin) |
|
|
|
|
|
|
|
|
|