Skip to content

Commit

Permalink
remove refs to LAB_DASHBOARD
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvw committed Nov 26, 2024
1 parent 135b105 commit da4e771
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions edc_adverse_event/middleware.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from django.conf import settings
from edc_dashboard.utils import insert_bootstrap_version

from .dashboard_templates import dashboard_templates
Expand All @@ -15,18 +14,7 @@ def __call__(self, request):

def process_view(self, request, *args):
request.url_name_data.update(**dashboard_urls)
try:
url_name_data = settings.LAB_DASHBOARD_URL_NAMES
except AttributeError:
pass
else:
request.url_name_data.update(**url_name_data)

template_data = dashboard_templates
try:
template_data.update(settings.LAB_DASHBOARD_BASE_TEMPLATES)
except AttributeError:
pass
template_data = insert_bootstrap_version(**template_data)
request.template_data.update(**template_data)

Expand Down

0 comments on commit da4e771

Please sign in to comment.