diff --git a/django_daisy/admin.py b/django_daisy/admin.py index 656ac0d..21803e6 100644 --- a/django_daisy/admin.py +++ b/django_daisy/admin.py @@ -3,6 +3,7 @@ from django.db import models from django.shortcuts import render from django.urls import reverse + from django_daisy.module_settings import DAISY_SETTINGS # Remove default form fields for specific date and time fields @@ -46,9 +47,7 @@ def index(self, request, extra_context=None): request.current_app = self.name return render( - request, [ - "admin/index.html" - ], context + request, "admin/index.html", context ) # Overriding the get_app_list method to sort apps and exclude hidden ones