Skip to content

Commit d79066b

Browse files
committed
Fixed a recent regression in agenda.html which caused the 'now' context variable to not be available when checking if a meeting session is in the past or future, to know which recordings or live session links to show. Also fixed a potential timezone issue with regards to this.
- Legacy-Id: 18688
1 parent d373eed commit d79066b

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

ietf/meeting/admin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class SchedulingEventInline(admin.TabularInline):
9797
class SessionAdmin(admin.ModelAdmin):
9898
list_display = ["meeting", "name", "group", "attendees", "requested", "current_status"]
9999
list_filter = ["meeting", ]
100-
raw_id_fields = ["meeting", "group", "materials"]
100+
raw_id_fields = ["meeting", "group", "materials", "joint_with_groups", "tombstone_for"]
101101
search_fields = ["meeting__number", "name", "group__name", "group__acronym", ]
102102
ordering = ["-id"]
103103
inlines = [SchedulingEventInline]

ietf/meeting/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1458,7 +1458,7 @@ def agenda(request, num=None, name=None, base=None, ext=None, owner=None, utc=""
14581458
"updated": updated,
14591459
"filter_categories": filter_categories,
14601460
"non_area_keywords": [label.lower() for label in non_area_labels],
1461-
"now": datetime.datetime.now(),
1461+
"now": datetime.datetime.now().astimezone(pytz.UTC),
14621462
"is_current_meeting": is_current_meeting,
14631463
"use_codimd": True if meeting.date>=settings.MEETING_USES_CODIMD_DATE else False,
14641464
"cache_time": 150 if is_current_meeting else 3600,

ietf/templates/meeting/agenda.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ <h1>Agenda</h1>
6565
{% endif %}
6666

6767

68-
{% include "meeting/agenda_filter.html" with filter_categories=filter_categories customize_button_text="Customize the agenda view..." only %}
68+
{% include "meeting/agenda_filter.html" with filter_categories=filter_categories customize_button_text="Customize the agenda view..." %}
6969

7070
<h2>Download as .ics</h2>
7171
<p class="buttonlist">
@@ -178,7 +178,7 @@ <h2>
178178
<div class="pull-right padded-left">
179179
{% if item.timeslot.type.slug == 'other' %}
180180
{% if item.session.agenda or item.session.remote_instructions or item.session.agenda_note %}
181-
{% include "meeting/session_buttons_include.html" with show_agenda=True item=item schedule=schedule only %}
181+
{% include "meeting/session_buttons_include.html" with show_agenda=True item=item schedule=schedule %}
182182
{% else %}
183183
{% for slide in item.session.slides %}
184184
<a href="{{slide.get_href}}">{{ slide.title|clean_whitespace }}</a>

ietf/templates/meeting/session_buttons_include.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
{% endif %}
3434

3535
{# show stream buttons up till end of session, then show archive buttons #}
36-
{% if now < timeslot.end_time %}
36+
{% if now < timeslot.utc_end_time %}
3737
<!-- Jabber -->
3838
<a class=""
3939
href="xmpp:{{session.jabber_room_name}}@jabber.ietf.org?join"

0 commit comments

Comments
 (0)