1 from __future__ import unicode_literals
3 from django.contrib import admin
7 class ServiceTicketAdmin(admin.ModelAdmin):
8 list_display = ('user', 'service', 'created')
9 list_filter = ('created',)
11 class ProxyTicketAdmin(admin.ModelAdmin):
12 list_display = ('user', 'service', 'created')
13 list_filter = ('created',)
15 class LoginTicketAdmin(admin.ModelAdmin):
16 list_display = ('ticket', 'created')
17 list_filter = ('created',)
19 class ProxyGrantingTicketAdmin(admin.ModelAdmin):
20 list_display = ('ticket', 'created')
21 list_filter = ('created',)
23 class ProxyGrantingTicketIOUAdmin(admin.ModelAdmin):
24 list_display = ('ticket', 'created')
25 list_filter = ('created',)
27 admin.site.register(ServiceTicket, ServiceTicketAdmin)
28 admin.site.register(ProxyTicket, ProxyTicketAdmin)
29 admin.site.register(LoginTicket, LoginTicketAdmin)
30 admin.site.register(ProxyGrantingTicket, ProxyGrantingTicketAdmin)
31 admin.site.register(ProxyGrantingTicketIOU, ProxyGrantingTicketIOUAdmin)