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