Skip to content

Commit 83e2313

Browse files
authored
[3.2.1]
1 parent 2cedb3d commit 83e2313

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/models.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,12 @@ class Category(TreeNodeModel):
121121

122122
This approach ensures full Django integration, efficient queries, and correct hierarchical behavior.
123123

124+
> **Important:**
125+
> Do **not** override `Meta.ordering` in models based on `TreeNodeModel`.
126+
> Internal ordering relies on the `_path` field to keep the hierarchy intact in the admin interface and elsewhere.
127+
> To control sibling order, use the `sorting_field` attribute instead.
128+
129+
124130
---
125131

126132
### Model Extending

0 commit comments

Comments
 (0)