diff --git a/ietf/api/tests.py b/ietf/api/tests.py index b887a6d46..f7b99624e 100644 --- a/ietf/api/tests.py +++ b/ietf/api/tests.py @@ -356,6 +356,7 @@ class CustomApiTests(TestCase): 'meeting': meeting.number, 'reg_type': 'hackathon', 'ticket_type': '', + 'checkedin': 'False', } url = urlreverse('ietf.api.views.api_new_meeting_registration') r = self.client.post(url, reg) @@ -381,7 +382,7 @@ class CustomApiTests(TestCase): # # Check record obj = MeetingRegistration.objects.get(email=reg['email'], meeting__number=reg['meeting']) - for key in ['affiliation', 'country_code', 'first_name', 'last_name', 'person', 'reg_type', 'ticket_type']: + for key in ['affiliation', 'country_code', 'first_name', 'last_name', 'person', 'reg_type', 'ticket_type', 'checkedin']: self.assertEqual(getattr(obj, key), reg.get(key), "Bad data for field '%s'" % key) # # Test with existing user diff --git a/ietf/api/views.py b/ietf/api/views.py index 91068da28..f4d9a23dc 100644 --- a/ietf/api/views.py +++ b/ietf/api/views.py @@ -135,7 +135,7 @@ def api_new_meeting_registration(request): def err(code, text): return HttpResponse(text, status=code, content_type='text/plain') required_fields = [ 'meeting', 'first_name', 'last_name', 'affiliation', 'country_code', - 'email', 'reg_type', 'ticket_type', ] + 'email', 'reg_type', 'ticket_type', 'checkedin'] fields = required_fields + [] if request.method == 'POST': # parameters: