Skip to content

Commit 4ce65c6

Browse files
authored
🔥(backend) remove treebeard form for the document admin
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.
1 parent c048b2a commit 4ce65c6

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/backend/core/admin.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from django.utils.translation import gettext_lazy as _
66

77
from treebeard.admin import TreeAdmin
8-
from treebeard.forms import movenodeform_factory
98

109
from . import models
1110

@@ -157,7 +156,6 @@ class DocumentAdmin(TreeAdmin):
157156
},
158157
),
159158
)
160-
form = movenodeform_factory(models.Document)
161159
inlines = (DocumentAccessInline,)
162160
list_display = (
163161
"id",

0 commit comments

Comments
 (0)