Skip to content

Commit e555fe9

Browse files
committed
Merged in [11849] from rcross@amsl.com:
Fix bug with main secr/proceedings page and add test. - Legacy-Id: 11871 Note: SVN reference [11849] has been migrated to Git commit f5fab30
2 parents 1d8fd6c + f5fab30 commit e555fe9

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

ietf/secr/proceedings/tests.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ def test_main(self):
2727
self.client.login(username="secretary", password="secretary+password")
2828
response = self.client.get(url)
2929
self.assertEqual(response.status_code, 200)
30-
30+
# test chair access
31+
self.client.logout()
32+
self.client.login(username="marschairman", password="marschairman+password")
33+
response = self.client.get(url)
34+
self.assertEqual(response.status_code, 200)
3135

3236
class RecordingTestCase(TestCase):
3337
def test_page(self):

ietf/secr/proceedings/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ def main(request):
372372
meetings = Meeting.objects.filter(type='ietf').order_by('-number')
373373
else:
374374
# select meetings still within the cutoff period
375-
today = datetime.datetime.today()
375+
today = datetime.date.today()
376376
meetings = [m for m in Meeting.objects.filter(type='ietf').order_by('-number') if m.get_submission_correction_date()>=today]
377377

378378
groups = get_my_groups(request.user)

0 commit comments

Comments
 (0)