Skip to content

Commit

Permalink
point to edc_subject_dashboard dashboard_button template
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvw committed Jan 21, 2025
1 parent d5e2ee9 commit e0c19da
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions edc_qareports/model_mixins/qa_report_model_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e0c19da

Please sign in to comment.