blob: 8b4930e2e5b8570d342cfed1a65bd174ecc91b83 (
plain) (
tree)
|
|
from django.contrib import admin
from ctrack.register.models import EngagementEvent
from ctrack.register.models import EngagementType
class EngagementEventAdmin(admin.ModelAdmin):
model = EngagementEvent
list_display = ("type", "user", "date", "short_description", "response_date_requested")
class EngagementEventTypeAdmin(admin.ModelAdmin):
model = EngagementEventAdmin
list_display = ("descriptor", "enforcement_instrument", "regulation_reference")
admin.site.register(EngagementEvent, EngagementEventAdmin)
admin.site.register(EngagementType, EngagementEventTypeAdmin)
|