TreeNode v2.0 - Major Update
This release brings significant improvements in performance, modularity, and UI/UX. The project has been restructured for better maintainability, optimized database queries, and expanded functionality.
Key Changes
* **Code Refactoring & Modularization**
models.py split into multiple files for better clarity and extensibility.
Introduced cache.py for optimized caching strategies.
Utility functions moved to a dedicated utils/ module.
* **Admin & UI Enhancements**
Added new admin panel templates for managing tree nodes.
Improved tree widget UI with tree_widget.js, treenode_admin.js, and new CSS styles.
Removed legacy Select2-based tree widget.
* **Database Performance Optimization**
Optimized queries in views.py and managers.py, reducing unnecessary database hits.
Improved QuerySet handling for hierarchical structures.
* **New Features**
**TreeNodeAutocompleteView**: Enables AJAX-based Select2 autocompletion for hierarchical data.
**GetChildrenCountView**: Returns child count for a given node.
**New Import/Export System**: Now supports JSON, CSV, YAML, XLSX, TSV.
* **Deprecated & Removed**
Removed obsolete compatibility layer.
Eliminated legacy model structure and redundant static assets.
Deprecated old UI components, replaced with a more modular system.
Why Upgrade?
TreeNode v2.0 is faster, more scalable, and easier to maintain. This update enhances performance, improves database efficiency, and refines the admin experience, making tree management more intuitive than ever.