From 3166084e29040009abe720968e51899306415815 Mon Sep 17 00:00:00 2001 From: Eli Jones Date: Wed, 25 Oct 2023 12:02:15 -0400 Subject: [PATCH] [blank-consent-form] consent form can now be empty. --- ...7_alter_devicesettings_consent_form_text.py | 18 ++++++++++++++++++ database/study_models.py | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 database/migrations/0107_alter_devicesettings_consent_form_text.py diff --git a/database/migrations/0107_alter_devicesettings_consent_form_text.py b/database/migrations/0107_alter_devicesettings_consent_form_text.py new file mode 100644 index 000000000..84723b800 --- /dev/null +++ b/database/migrations/0107_alter_devicesettings_consent_form_text.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.20 on 2023-10-25 15:39 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('database', '0106_researcher_most_recent_page'), + ] + + operations = [ + migrations.AlterField( + model_name='devicesettings', + name='consent_form_text', + field=models.TextField(blank=True, default='I have read and understood the information about the study and all of my questions about the study have been answered by the study researchers.'), + ), + ] diff --git a/database/study_models.py b/database/study_models.py index 3c71c7eb3..e8a79877d 100644 --- a/database/study_models.py +++ b/database/study_models.py @@ -275,7 +275,7 @@ def export(self) -> Dict[str, Any]: # Text strings about_page_text = models.TextField(default=ABOUT_PAGE_TEXT) call_clinician_button_text = models.TextField(default='Call My Clinician') - consent_form_text = models.TextField(default=CONSENT_FORM_TEXT) + consent_form_text = models.TextField(default=CONSENT_FORM_TEXT, blank=True, null=False) survey_submit_success_toast_text = models.TextField(default=SURVEY_SUBMIT_SUCCESS_TOAST_TEXT) # Consent sections