Don't redirect to proceedings for future meetings which exist in the database but don't have a schedule yet. We want to show tne agenda (even if empty) for those.
- Legacy-Id: 10661
This commit is contained in:
parent
2efdf9b0d8
commit
39142ed63e
|
@ -368,13 +368,14 @@ def agenda(request, num=None, name=None, base=None, ext=None):
|
|||
|
||||
# We do not have the appropriate data in the datatracker for IETF 64 and earlier.
|
||||
# So that we're not producing misleading pages...
|
||||
if not meetings.exists() or not meetings.first().agenda.assignments.exists():
|
||||
|
||||
meeting = meetings.first()
|
||||
if not meetings.exists() or (meeting.number.isdigit() and meeting.number <= 64 and not meeting.agenda.assignments.exists()):
|
||||
if ext == '.html':
|
||||
return HttpResponseRedirect( 'https://www.ietf.org/proceedings/%s' % num )
|
||||
else:
|
||||
raise Http404
|
||||
|
||||
meeting = meetings.first()
|
||||
schedule = get_schedule(meeting, name)
|
||||
if schedule == None:
|
||||
base = base.replace("-utc", "")
|
||||
|
|
Loading…
Reference in a new issue