Borrowing-TrackerBackend/equipment_tracker/equipment_groups/admin.py

12 lines
414 B
Python
Raw Normal View History

from django.contrib import admin
from .models import EquipmentGroup
from simple_history.admin import SimpleHistoryAdmin
@admin.register(EquipmentGroup)
class EquipmentGroupAdmin(SimpleHistoryAdmin):
2023-12-03 12:34:20 +08:00
readonly_fields = ['status', 'dated_added',
'last_updated', 'last_updated_by']
list_display = ('name', 'status', 'date_added',
'last_updated', 'last_updated_by')