X-Git-Url: https://git.mdrn.pl/django-cas-provider.git/blobdiff_plain/cc61c5969227c2d49544997ebbf074541029400b..34cdae232d0d9a1b26133b7dd39ab484243d6493:/cas_provider/admin.py?ds=sidebyside diff --git a/cas_provider/admin.py b/cas_provider/admin.py index 5091f8e..b240d1f 100644 --- a/cas_provider/admin.py +++ b/cas_provider/admin.py @@ -1,11 +1,13 @@ from django.contrib import admin - -from models import ServiceTicket, LoginTicket +from models import * 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)