#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])
|
||||
except Profile.DoesNotExist:
|
||||
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.setStyle(TableStyle([
|
||||
('LINEBELOW', (0,0), (-1,0), 0.25, colors.grey),
|
||||
|
Loading…
Reference in New Issue
Block a user