def get_context_from_db(self, consent_page, platform_name, item, context):
enterprise_customer = consent_page.enterprise_customer<EOL>course_title = context.get('<STR_LIT>', None)<EOL>course_start_date = context.get('<STR_LIT>', None)<EOL>context_data = {<EOL>'<STR_LIT>': True,<EOL>'<STR_LIT>': consent_page.page_title,<EOL>'<STR_LIT>': consent_page.left_sidebar_text.format(<EOL>enterprise_customer_name=enterprise_customer.name,<EOL>platform_name=platform_name,<EOL>item=item,<EOL>course_title=course_title,<EOL>course_start_date=course_start_date,<EOL>),<EOL>'<STR_LIT>': consent_page.top_paragraph.format(<EOL>enterprise_customer_name=enterprise_customer.name,<EOL>platform_name=platform_name,<EOL>item=item,<EOL>course_title=course_title,<EOL>course_start_date=course_start_date,<EOL>),<EOL>'<STR_LIT>': consent_page.agreement_text.format(<EOL>enterprise_customer_name=enterprise_customer.name,<EOL>platform_name=platform_name,<EOL>item=item,<EOL>course_title=course_title,<EOL>course_start_date=course_start_date,<EOL>),<EOL>'<STR_LIT>': consent_page.continue_text,<EOL>'<STR_LIT>': consent_page.abort_text,<EOL>'<STR_LIT>': consent_page.policy_dropdown_header,<EOL>'<STR_LIT>': consent_page.policy_paragraph.format(<EOL>enterprise_customer_name=enterprise_customer.name,<EOL>platform_name=platform_name,<EOL>item=item,<EOL>course_title=course_title,<EOL>course_start_date=course_start_date,<EOL>),<EOL>'<STR_LIT>': consent_page.confirmation_modal_header.format(<EOL>enterprise_customer_name=enterprise_customer.name,<EOL>platform_name=platform_name,<EOL>item=item,<EOL>course_title=course_title,<EOL>course_start_date=course_start_date,<EOL>),<EOL>'<STR_LIT>': consent_page.confirmation_modal_text.format(<EOL>enterprise_customer_name=enterprise_customer.name,<EOL>platform_name=platform_name,<EOL>item=item,<EOL>course_title=course_title,<EOL>course_start_date=course_start_date,<EOL>),<EOL>'<STR_LIT>': consent_page.modal_affirm_decline_text,<EOL>'<STR_LIT>': consent_page.modal_abort_decline_text,<EOL>}<EOL>return context_data<EOL>
Make set of variables(populated from db) that will be used in data sharing consent page.