Fixed some stages tests

This commit is contained in:
Claude Paroz 2018-02-02 10:17:52 +01:00
parent 7347f760ed
commit 547ee19d09
2 changed files with 4 additions and 4 deletions

View file

@ -565,7 +565,7 @@ class ImportBulletinView(FormView):
email_sent = 0
pdf_file_list = os.listdir(temp_dir)
students = klass.student_set.exclude(archived=True)
students = klass.student_set.exclude(archived=True).order_by('last_name', 'first_name')
for student in students:
if not student.email:
messages.warning(self.request, "L'étudiant %s ne possède pas d'email." % student)