mirror of
https://github.com/lemeow125/EquipmentTracker-Backend.git
synced 2024-11-17 06:09:26 +08:00
9 lines
332 B
Python
9 lines
332 B
Python
from django.contrib import admin
|
|
from .models import EquipmentGroup
|
|
from simple_history.admin import SimpleHistoryAdmin
|
|
|
|
|
|
@admin.register(EquipmentGroup)
|
|
class EquipmentGroupAdmin(SimpleHistoryAdmin):
|
|
readonly_fields = ['status', 'date_added', 'last_updated']
|
|
list_display = ('name', 'status', 'date_added', 'last_updated')
|