mirror of
https://github.com/lemeow125/Borrowing-TrackerBackend.git
synced 2024-11-17 06:19: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 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)
|
||||||
|
|
Loading…
Reference in a new issue