mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 14:29:51 -04:00
Don’t prefil answer to research consent question
We were treating `None` (not answered) the same as `False` (previously answered no).
This commit is contained in:
@@ -151,7 +151,10 @@ def estimate_usage(service_id):
|
||||
volume_email=current_service.volume_email,
|
||||
volume_sms=current_service.volume_sms,
|
||||
volume_letter=current_service.volume_letter,
|
||||
consent_to_research='yes' if current_service.consent_to_research else 'no',
|
||||
consent_to_research={
|
||||
True: 'yes',
|
||||
False: 'no',
|
||||
}.get(current_service.consent_to_research),
|
||||
)
|
||||
|
||||
if form.validate_on_submit():
|
||||
|
||||
Reference in New Issue
Block a user