Implemented custom templates by inventory type using PrinterTemplate object.
[htsworkflow.git] / htsworkflow / frontend / bcmagic / admin.py
index 2dce2ec5936a417e06bcb8be8119c7c5f61f18b7..073c3e85da54b09416128e73786207dd20144afa 100644 (file)
@@ -1,7 +1,11 @@
 from django.contrib import admin
-from htsworkflow.frontend.bcmagic.models import KeywordMap
+from htsworkflow.frontend.bcmagic.models import KeywordMap, Printer
 
 class KeywordMapAdmin(admin.ModelAdmin):
     list_display = ('keyword','regex', 'url_template')
 
-admin.site.register(KeywordMap, KeywordMapAdmin)
\ No newline at end of file
+class PrinterAdmin(admin.ModelAdmin):
+    list_display = ('name', 'model', 'ip_address', 'label_shape', 'label_width', 'label_height', 'notes')
+    
+admin.site.register(KeywordMap, KeywordMapAdmin)
+admin.site.register(Printer, PrinterAdmin)
\ No newline at end of file