proxies add --> append
This commit is contained in:
parent
cf49573c61
commit
d173cd6190
1 changed files with 1 additions and 1 deletions
|
@ -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 = []
|
||||||
|
|
Loading…
Reference in a new issue