diff options
| -rw-r--r-- | postgresqleu/confsponsor/util.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/postgresqleu/confsponsor/util.py b/postgresqleu/confsponsor/util.py index f379e393..f9daeafa 100644 --- a/postgresqleu/confsponsor/util.py +++ b/postgresqleu/confsponsor/util.py @@ -175,9 +175,11 @@ def get_pdf_fields_for_conference(conference, sponsor=None, overrides={}): fields.append( ('static:euvat', sponsor.vatnumber if sponsor else overrides.get('static:euvat', 'Sponsor EU VAT number')), ) - fields.extend([ - ('static:clickthrough', overrides.get('static:clickthrough', 'Click-through agreement')), - ('static:clickthroughdate', str(sponsor.signupat.date()) if sponsor else overrides.get('static:clickthroughdate', 'Click-through date')), - ]) + if sponsor and sponsor.level.contractlevel == 1: + # Only add clickthrough contract fields if it's a clickthrough level (or a preview, with no sponsor yet) + fields.extend([ + ('static:clickthrough', overrides.get('static:clickthrough', 'Click-through agreement')), + ('static:clickthroughdate', str(sponsor.signupat.date()) if sponsor else overrides.get('static:clickthroughdate', 'Click-through date')), + ]) return fields |
