#325: participant/passwords/print/ raises server-error
This commit is contained in:
parent
f12d155651
commit
f3d656c98d
@ -686,7 +686,10 @@ class ParticipantsPasswordsPDF(PDFView):
|
|||||||
data.append([cell,cell2])
|
data.append([cell,cell2])
|
||||||
except Profile.DoesNotExist:
|
except Profile.DoesNotExist:
|
||||||
pass
|
pass
|
||||||
|
# add empty table line if no participants available
|
||||||
|
if data == []:
|
||||||
|
data.append(['',''])
|
||||||
|
# build table
|
||||||
t=Table(data, 10.5*cm, 7.42*cm)
|
t=Table(data, 10.5*cm, 7.42*cm)
|
||||||
t.setStyle(TableStyle([
|
t.setStyle(TableStyle([
|
||||||
('LINEBELOW', (0,0), (-1,0), 0.25, colors.grey),
|
('LINEBELOW', (0,0), (-1,0), 0.25, colors.grey),
|
||||||
|
Loading…
Reference in New Issue
Block a user