Implemented custom templates by inventory type using PrinterTemplate object.
[htsworkflow.git] / htsworkflow / frontend / bcmagic / admin.py
1 from django.contrib import admin
2 from htsworkflow.frontend.bcmagic.models import KeywordMap, Printer
3
4 class KeywordMapAdmin(admin.ModelAdmin):
5     list_display = ('keyword','regex', 'url_template')
6
7 class PrinterAdmin(admin.ModelAdmin):
8     list_display = ('name', 'model', 'ip_address', 'label_shape', 'label_width', 'label_height', 'notes')
9     
10 admin.site.register(KeywordMap, KeywordMapAdmin)
11 admin.site.register(Printer, PrinterAdmin)