X-Git-Url: https://git.mdrn.pl/django-cas-provider.git/blobdiff_plain/285fa46cb15a8bdab46fd209cc7f37cdd1fb2df4..087a24803f4e6749a5c32a88c62fcb922290635d:/cas_provider/admin.py?ds=sidebyside diff --git a/cas_provider/admin.py b/cas_provider/admin.py index 5934487..f5058a4 100644 --- a/cas_provider/admin.py +++ b/cas_provider/admin.py @@ -1,11 +1,14 @@ 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 LoginTicketAdmin(admin.ModelAdmin): - pass -admin.site.register(LoginTicket, LoginTicketAdmin) \ No newline at end of file + list_display = ('ticket', 'created') + list_filter = ('created',) + +admin.site.register(ServiceTicket, ServiceTicketAdmin) +admin.site.register(LoginTicket, LoginTicketAdmin)