diff --git a/edc_qareports/model_mixins/qa_report_model_mixin.py b/edc_qareports/model_mixins/qa_report_model_mixin.py index 8bc1ac9..e642c88 100644 --- a/edc_qareports/model_mixins/qa_report_model_mixin.py +++ b/edc_qareports/model_mixins/qa_report_model_mixin.py @@ -35,6 +35,10 @@ def recreate_db_view(cls, drop: bool | None = None, verbose: bool | None = None) from intecomm_reports.models import Vl Vl.recreate_db_view() + + Also, could do something like this (replace details as required): + CREATE USER 'edc-effect-live'@'10.131.23.168' IDENTIFIED BY 'xxxxxx'; + GRANT SELECT ON effect_prod.* to 'edc-effect-live'@'10.131.23.168'; """ drop = True if drop is None else drop try: diff --git a/edc_qareports/modeladmin_mixins/on_study_missing_values_modeladmin_mixin.py b/edc_qareports/modeladmin_mixins/on_study_missing_values_modeladmin_mixin.py index 0f325c6..6d89d4a 100644 --- a/edc_qareports/modeladmin_mixins/on_study_missing_values_modeladmin_mixin.py +++ b/edc_qareports/modeladmin_mixins/on_study_missing_values_modeladmin_mixin.py @@ -96,7 +96,7 @@ def dashboard(self, obj=None, label=None) -> str: ), ) context = dict(title=_("Go to subject's dashboard"), url=dashboard_url, label=label) - return render_to_string("dashboard_button.html", context=context) + return render_to_string("edc_subject_dashboard/dashboard_button.html", context=context) @staticmethod def crf_admin_site_name(crf_model_cls) -> str: