+ print("Deleting %s..." % ticket.ticket)
+ ticket.delete()
+ else:
+ print("%s not expired..." % ticket.ticket)
+ tickets = LoginTicket.objects.all()
+ print("Login tickets:")
+ for ticket in tickets:
+ expiration = datetime.timedelta(minutes=settings.CAS_TICKET_EXPIRATION)
+ if datetime.datetime.now() > ticket.created + expiration:
+ print("Deleting %s..." % ticket.ticket)