Exclude archived students from UpdateDataFormPDF results
This commit is contained in:
parent
c86128250e
commit
0f1a893cb9
1 changed files with 1 additions and 1 deletions
|
|
@ -92,7 +92,7 @@ class UpdateDataFormPDF(SimpleDocTemplate):
|
|||
|
||||
def produce(self, klass):
|
||||
self.story = []
|
||||
for student in klass.student_set.all():
|
||||
for student in klass.student_set.filter(archived=False):
|
||||
self.story.append(Image(find('img/header.gif'), width=520, height=75))
|
||||
self.story.append(Spacer(0, 2*cm))
|
||||
destinataire = '{0}<br/>{1}<br/>{2}'.format(student.civility, student.full_name, student.klass)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue