From 4ce65c654f5fe9cf8830988012d7313dad8fc464 Mon Sep 17 00:00:00 2001 From: Manuel Raynaud Date: Fri, 17 Oct 2025 10:35:22 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5(backend)=20remove=20treebeard=20fo?= =?UTF-8?q?rm=20for=20the=20document=20admin?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The document change admin page is unusable. The django treebeard library can change the form used by one provided but this one is really slow. And it is collapsing the configuration made with the other fields and readonly fields declared on the DocumentAdmin class. In a first time we remove the form usage, it seems useless. Later we have to provide more information on this admin page. --- src/backend/core/admin.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/backend/core/admin.py b/src/backend/core/admin.py index e096b020..88329030 100644 --- a/src/backend/core/admin.py +++ b/src/backend/core/admin.py @@ -5,7 +5,6 @@ from django.contrib.auth import admin as auth_admin from django.utils.translation import gettext_lazy as _ from treebeard.admin import TreeAdmin -from treebeard.forms import movenodeform_factory from . import models @@ -157,7 +156,6 @@ class DocumentAdmin(TreeAdmin): }, ), ) - form = movenodeform_factory(models.Document) inlines = (DocumentAccessInline,) list_display = ( "id",