Django 1.8(b2) support.
[django-cas-provider.git] / cas_provider / admin.py
1 from __future__ import unicode_literals
2
3 from django.contrib import admin
4 from .models import *
5
6
7 class ServiceTicketAdmin(admin.ModelAdmin):
8     list_display = ('user', 'service', 'created')
9     list_filter = ('created',)
10
11 class ProxyTicketAdmin(admin.ModelAdmin):
12     list_display = ('user', 'service', 'created')
13     list_filter = ('created',)
14
15 class LoginTicketAdmin(admin.ModelAdmin):
16     list_display = ('ticket', 'created')
17     list_filter = ('created',)
18
19 class ProxyGrantingTicketAdmin(admin.ModelAdmin):
20     list_display = ('ticket', 'created')
21     list_filter = ('created',)
22
23 class ProxyGrantingTicketIOUAdmin(admin.ModelAdmin):
24     list_display = ('ticket', 'created')
25     list_filter = ('created',)
26
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)