From 28d10ff9fc2cd56ee36536eb509c19c6744cc1fa Mon Sep 17 00:00:00 2001 From: James Polley Date: Wed, 17 Jan 2018 00:46:57 +1100 Subject: [PATCH] Remove the personalised bits of session chair display - The schedule grid page is ridculously database-query heavy and hence terribly lacking in perfmantitude. - Caching can help with this, but the caching implemention at present is not user-aware. If one user looks at the page, they'll get a "YOU" in all the places they're chair and something else everywhere else - and then everyone will see that for the next 600 seconds, then YOU will become someone else - to avoid this, remove the request.user-specific bit of the template --- pinaxcon/templates/symposion/schedule/_grid.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pinaxcon/templates/symposion/schedule/_grid.html b/pinaxcon/templates/symposion/schedule/_grid.html index bdbdcb4f..1020dbe9 100644 --- a/pinaxcon/templates/symposion/schedule/_grid.html +++ b/pinaxcon/templates/symposion/schedule/_grid.html @@ -16,7 +16,7 @@ {% for room in timetable.rooms %} {% with room|trackname:timetable.day as track_name %} {% if track_name %}

{{ track_name }}{% endif %} - {% endwith %} + {% endwith %} {% endfor %} {% endif %} @@ -44,8 +44,6 @@ Session chair: {% if not session.chair %} Volunteer! 🙋 - {% elif session.chair.user == request.user %} - You! {% endif %} {% endfor %}