From 832217b8ffe26f0c54b36f0b83882565a6b2224f Mon Sep 17 00:00:00 2001
From: Shrikrishna Singh <krishnasingh.ss30@gmail.com>
Date: Mon, 20 Jun 2022 15:21:25 +0530
Subject: [PATCH] Change edit handlers to panels and also path to templates

---
 hypha/apply/funds/edit_handlers.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/hypha/apply/funds/edit_handlers.py b/hypha/apply/funds/edit_handlers.py
index 26ceb81fb..2a688929e 100644
--- a/hypha/apply/funds/edit_handlers.py
+++ b/hypha/apply/funds/edit_handlers.py
@@ -2,7 +2,7 @@ from django.forms import Field, Widget
 from django.forms.utils import pretty_name
 from django.template.loader import render_to_string
 from django.urls import reverse
-from wagtail.admin.edit_handlers import EditHandler, FieldPanel
+from wagtail.admin.edit_handlers import Panel, FieldPanel
 from wagtail.core.models import Page
 
 
@@ -37,8 +37,8 @@ class DisplayField(Field):
     widget = ReadonlyWidget
 
 
-class ReadOnlyPanel(EditHandler):
-    template = 'wagtailadmin/edit_handlers/single_field_panel.html'
+class ReadOnlyPanel(Panel):
+    template = 'wagtailadmin/panels/single_field_panel.html'
     field_template = 'wagtailadmin/shared/field.html'
 
     def __init__(self, attr, **kwargs):
@@ -85,7 +85,7 @@ class ReadOnlyPanel(EditHandler):
 
 
 class ReadOnlyInlinePanel(ReadOnlyPanel):
-    template = 'wagtailadmin/edit_handlers/multi_field_panel.html'
+    template = 'wagtailadmin/panels/multi_field_panel.html'
 
     def get_child_edit_handler(self):
         child_edit_handler = ReadOnlyPanel(self.attr)
-- 
GitLab