mirror of
https://github.com/jazzband/django-categories.git
synced 2026-05-01 04:04:55 +00:00
27 lines
686 B
Text
27 lines
686 B
Text
Goals of the project
|
|
|
|
* Have a generic method for handling hierarchical data
|
|
|
|
* Allow multiple independent trees, or just one tree
|
|
|
|
* Have a widget for use in forms
|
|
|
|
* In templates:
|
|
|
|
+ Show one level of a tree
|
|
- All root categories
|
|
- Just children of a specified category
|
|
|
|
+ Show multiple levels
|
|
- Ancestors of category, category and all children of category
|
|
- Category and its children
|
|
|
|
+ An inclusion tag for common methods of formatting categories
|
|
- Grandparent :: Parent :: Child <-- current node
|
|
- Add relative links for ancestors
|
|
- Unordered list:
|
|
* Grandparent
|
|
* Parent <-- current node
|
|
* Child 1
|
|
* Child 2
|
|
* Child n
|