diff --git a/jm2l/templates/helpers.mako b/jm2l/templates/helpers.mako index cab5f1e..1ad8be5 100644 --- a/jm2l/templates/helpers.mako +++ b/jm2l/templates/helpers.mako @@ -693,8 +693,15 @@ TabJs = {'select':[], 'desc':[]} Sponsors ${Year} - <% num = -1 %> - % for entity in request.sponsors(Year): + <% + import random + num = -1 + sponsors = list(request.sponsors(Year)) + random.shuffle(sponsors) + exposants = list(request.exposants(Year)) + random.shuffle(exposants) + %> + % for entity in sponsors: % for thumb in entity.ThumbLinks: <% num+=1 %> % if (num==0): @@ -719,7 +726,7 @@ TabJs = {'select':[], 'desc':[]} <% num = -1 %> - % for entity in request.exposants(Year): + % for entity in exposants: % for thumb in entity.ThumbLinks: <% num+=1 %> % if (num==0):