proxies add --> append

This commit is contained in:
Valentin Samir 2015-05-26 16:17:57 +02:00
parent cf49573c61
commit d173cd6190

View file

@ -166,7 +166,7 @@ def psValidate(request, typ=['ST']):
elif ticket.startswith("PT"): elif ticket.startswith("PT"):
ticket = models.ProxyTicket.objects.get(value=ticket, service=service, validate=False, renew=renew, creation__gt=(datetime.now() - timedelta(seconds=settings.CAS_TICKET_VALIDITY))) ticket = models.ProxyTicket.objects.get(value=ticket, service=service, validate=False, renew=renew, creation__gt=(datetime.now() - timedelta(seconds=settings.CAS_TICKET_VALIDITY)))
for p in ticket.proxies.all(): for p in ticket.proxies.all():
proxies.add(p.url) proxies.append(p.url)
ticket.validate = True ticket.validate = True
ticket.save() ticket.save()
attributes = [] attributes = []