I'm having a bit of trouble putting together some information, from separate models.
For example: I have 3 models, one call Category
, another call Group
and another call Tools
.
These tables will get the name and slug of existing categories, existing groups, and existing tools.
There is also a fourth model called Final. There I will have the values of various combinations between categories, groups and tools.
I'd like to organize information like this:
-
Group Name 1
-
-
Tool Name 1
-
-
-
- Category 1
-
-
-
- Category 2
-
-
-
- Category 3
-
-
-
Tool Name 2
-
-
-
- Category 4
-
-
-
- Category 5
-
-
-
- Category 6
-
-
Group Name 2
-
-
Tool Name 3
-
-
-
- Category 7
-
-
-
- Category 8
-
-
-
Tool Name 4
-
-
-
- Category 9
-
Models
- Group (contains group name and slug)
- Tools (contains name and tool slug)
- Category (contains category name and slug)
- Final (contains group, tool, category, value1, value2)
The organization I put above would be the information menu. In case, I would put the links in the categories. Then the route / link would look like:
/grupo-selecionado/ferramenta-selecionada/categoria-selecionada
I would like to know if I need to organize my information manually or whether it is possible to group it in this way using Django's own% .