X-Git-Url: https://git.mdrn.pl/django-cas-provider.git/blobdiff_plain/087a24803f4e6749a5c32a88c62fcb922290635d..18abc4fde3d7a7d9195dfc43239e482d2a4671ce:/cas_provider/admin.py diff --git a/cas_provider/admin.py b/cas_provider/admin.py index f5058a4..90182e2 100644 --- a/cas_provider/admin.py +++ b/cas_provider/admin.py @@ -1,14 +1,29 @@ from django.contrib import admin -from models import * +from .models import * class ServiceTicketAdmin(admin.ModelAdmin): list_display = ('user', 'service', 'created') list_filter = ('created',) +class ProxyTicketAdmin(admin.ModelAdmin): + list_display = ('user', 'service', 'created') + list_filter = ('created',) + class LoginTicketAdmin(admin.ModelAdmin): 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)