Fix bug with main secr/proceedings page and add test. Commit ready for merge.

- Legacy-Id: 11849
This commit is contained in:
Ryan Cross 2016-08-23 18:18:09 +00:00
parent 3e3255db7d
commit f5fab30d63
2 changed files with 6 additions and 2 deletions

View file

@ -27,7 +27,11 @@ class ProceedingsTestCase(TestCase):
self.client.login(username="secretary", password="secretary+password")
response = self.client.get(url)
self.assertEqual(response.status_code, 200)
# test chair access
self.client.logout()
self.client.login(username="marschairman", password="marschairman+password")
response = self.client.get(url)
self.assertEqual(response.status_code, 200)
class RecordingTestCase(TestCase):
def test_page(self):

View file

@ -361,7 +361,7 @@ def main(request):
meetings = Meeting.objects.filter(type='ietf').order_by('-number')
else:
# select meetings still within the cutoff period
today = datetime.datetime.today()
today = datetime.date.today()
meetings = [m for m in Meeting.objects.filter(type='ietf').order_by('-number') if m.get_submission_correction_date()>=today]
groups = get_my_groups(request.user)