summaryrefslogblamecommitdiffstats
path: root/instruments/admin.py
blob: b11054065342cd4cab29a499b1565cdcd56f29c8 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                
                                                  





                                                 




                                                                                       

                                                      
                                            
from django.contrib import admin

from .models import SOP, Instrument, SubInstrument


class SubInstrumentAdmin(admin.ModelAdmin):
    list_display = ("__str__", "itype", "parent")


class SOPInstrumentAdmin(admin.ModelAdmin):
    list_display = ("__str__", "designation", "sp_link", "draft_status", "author_lead")
    ordering = ("name",)


admin.site.register(Instrument)
admin.site.register(SubInstrument, SubInstrumentAdmin)
admin.site.register(SOP, SOPInstrumentAdmin)