mirror of
https://github.com/lemeow125/EquipmentTracker-Backend.git
synced 2024-11-17 06:09:26 +08:00
Added history viewing for equipment and equipment instances in django admin
This commit is contained in:
parent
1163d64c06
commit
0e11d7e1ed
1 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue