Skip to content

Commit

Permalink
Moved position of waitlist header, updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
NamanSatish committed Dec 19, 2023
1 parent 816de35 commit 6790661
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions huxley/core/admin/registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ def get_rows(self):
"Beginners", "Intermediates", "Advanced", "Spanish Speakers",
"Chinese Speakers", "Assignments Finalized", "Waivers Complete",
"Delegate Fees Paid", "Delegate Fees Owed",
"Paid Registration Fee?", "Invoice Sent", "Payment Type", "Country 1", "Country 2", "Country 3",
"Paid Registration Fee?", "Invoice Sent", "Payment Type", "Waitlisted", "Country 1", "Country 2", "Country 3",
"Country 4", "Country 5", "Country 6", "Country 7", "Country 8",
"Country 9", "Country 10", "Committee Preferences",
"Registration Comments", "Waitlisted"
"Registration Comments"
])

for registration in Registration.objects.all().order_by(
Expand Down Expand Up @@ -61,10 +61,10 @@ def get_rows(self):
registration.invoices_sent
]
] + payment_type_string +
is_waitlisted_string +
country_preferences +
committee_preferences +
[str(registration.registration_comments)] +
is_waitlisted_string )
[str(registration.registration_comments)])
return rows

def info(self, request):
Expand Down
6 changes: 3 additions & 3 deletions huxley/core/tests/admin/test_registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ def test_preference_export(self):
"Beginners", "Intermediates", "Advanced", "Spanish Speakers",
"Chinese Speakers", "Assignments Finalized", "Waivers Complete",
"Delegate Fees Paid", "Delegate Fees Owed", "Paid Registration Fee?",
"Invoice Sent", "Payment Type",
"Invoice Sent", "Payment Type", "Waitlisted",
"Country 1", "Country 2", "Country 3", "Country 4", "Country 5",
"Country 6", "Country 7", "Country 8", "Country 9", "Country 10",
"Committee Preferences", "Registration Comments", "Waitlisted"
"Committee Preferences", "Registration Comments"
]

fields_csv = ",".join(map(str, header)) + "\r\n"
Expand Down Expand Up @@ -62,10 +62,10 @@ def test_preference_export(self):
registration.invoices_sent
]
fields.extend(payment_type_string)
fields.extend(is_waitlisted_string)
fields.extend(country_preferences)
fields.extend(committee_preferences)
fields.extend(registration.registration_comments)
fields.extend(is_waitlisted_string)

fields_csv += ','.join(map(str, fields))
self.assertEquals(fields_csv, response.content[:-3].decode('utf-8'))

0 comments on commit 6790661

Please sign in to comment.