From 0e11d7e1ed10378dd14719173b7cbad36709b458 Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Sun, 12 Nov 2023 22:10:54 +0800 Subject: [PATCH] Added history viewing for equipment and equipment instances in django admin --- equipment_tracker/equipments/admin.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/equipment_tracker/equipments/admin.py b/equipment_tracker/equipments/admin.py index 0e16a90..ae71d72 100644 --- a/equipment_tracker/equipments/admin.py +++ b/equipment_tracker/equipments/admin.py @@ -1,5 +1,6 @@ from django.contrib import admin +from simple_history.admin import SimpleHistoryAdmin from .models import Equipment, EquipmentInstance -admin.site.register(Equipment) -admin.site.register(EquipmentInstance) +admin.site.register(Equipment, SimpleHistoryAdmin) +admin.site.register(EquipmentInstance, SimpleHistoryAdmin)