X-Git-Url: https://git.mdrn.pl/django-cas-provider.git/blobdiff_plain/730895aa3ce52318f816e4d9146595b96fdeeeb4..f3c49c09dc7b2a7ccee36b897b9056a9622e0c02:/cas_provider/admin.py diff --git a/cas_provider/admin.py b/cas_provider/admin.py index 5934487..075fcb9 100644 --- a/cas_provider/admin.py +++ b/cas_provider/admin.py @@ -1,11 +1,31 @@ +from __future__ import unicode_literals + from django.contrib import admin +from .models import * -from cas_provider.models import ServiceTicket, LoginTicket class ServiceTicketAdmin(admin.ModelAdmin): - pass -admin.site.register(ServiceTicket, ServiceTicketAdmin) + list_display = ('user', 'service', 'created') + list_filter = ('created',) + +class ProxyTicketAdmin(admin.ModelAdmin): + list_display = ('user', 'service', 'created') + list_filter = ('created',) class LoginTicketAdmin(admin.ModelAdmin): - pass -admin.site.register(LoginTicket, LoginTicketAdmin) \ No newline at end of file + list_display = ('ticket', 'created') + list_filter = ('created',) + +class ProxyGrantingTicketAdmin(admin.ModelAdmin): + list_display = ('ticket', 'created') + list_filter = ('created',) + +class ProxyGrantingTicketIOUAdmin(admin.ModelAdmin): + list_display = ('ticket', 'created') + list_filter = ('created',) + +admin.site.register(ServiceTicket, ServiceTicketAdmin) +admin.site.register(ProxyTicket, ProxyTicketAdmin) +admin.site.register(LoginTicket, LoginTicketAdmin) +admin.site.register(ProxyGrantingTicket, ProxyGrantingTicketAdmin) +admin.site.register(ProxyGrantingTicketIOU, ProxyGrantingTicketIOUAdmin)