1 from django.contrib import admin
5 class ServiceTicketAdmin(admin.ModelAdmin):
6 list_display = ('user', 'service', 'created')
7 list_filter = ('created',)
9 class ProxyTicketAdmin(admin.ModelAdmin):
10 list_display = ('user', 'service', 'created')
11 list_filter = ('created',)
13 class LoginTicketAdmin(admin.ModelAdmin):
14 list_display = ('ticket', 'created')
15 list_filter = ('created',)
17 class ProxyGrantingTicketAdmin(admin.ModelAdmin):
18 list_display = ('ticket', 'created')
19 list_filter = ('created',)
21 class ProxyGrantingTicketIOUAdmin(admin.ModelAdmin):
22 list_display = ('ticket', 'created')
23 list_filter = ('created',)
25 admin.site.register(ServiceTicket, ServiceTicketAdmin)
26 admin.site.register(ProxyTicket, ProxyTicketAdmin)
27 admin.site.register(LoginTicket, LoginTicketAdmin)
28 admin.site.register(ProxyGrantingTicket, ProxyGrantingTicketAdmin)
29 admin.site.register(ProxyGrantingTicketIOU, ProxyGrantingTicketIOUAdmin)