Added history viewing for equipment and equipment instances in django admin

This commit is contained in:
Keannu Bernasol 2023-11-12 22:10:54 +08:00
parent 1163d64c06
commit 0e11d7e1ed

View file

@ -1,5 +1,6 @@
from django.contrib import admin from django.contrib import admin
from simple_history.admin import SimpleHistoryAdmin
from .models import Equipment, EquipmentInstance from .models import Equipment, EquipmentInstance
admin.site.register(Equipment) admin.site.register(Equipment, SimpleHistoryAdmin)
admin.site.register(EquipmentInstance) admin.site.register(EquipmentInstance, SimpleHistoryAdmin)