Re: Categories and shoe Subcategories according to the parent category.

2020-05-19 Thread Clive Bruton
There are django modules for hierarchical navigation https://djangopackages.org/grids/g/navigation/ -- Clive On 19 May 2020, at 23:20, saqlain abbas wrote: Please tell me if anyone knows about this. On Mon, May 18, 2020 at 4:50 PM saqlain abbas wrote: Hi, if i add Categories , for

Re: Categories and shoe Subcategories according to the parent category.

2020-05-19 Thread Antje Kazimiers
you could have a field "parent" in your Model Category which is a ForeignKey to Category itself, so Category is a self-referencing table. Then in your first dropdown you only show those entries where parent is None and in your second one where parent == accessories. you need to get this right

Re: Categories and shoe Subcategories according to the parent category.

2020-05-19 Thread saqlain abbas
Please tell me if anyone knows about this. On Mon, May 18, 2020 at 4:50 PM saqlain abbas wrote: > Hi, if i add Categories , for example > 1)accessories > 2)sports > 3)books > Subcategories: > accessories is the parent category > child categories are > watches > jewlry > caps > how can i show if

Categories and shoe Subcategories according to the parent category.

2020-05-18 Thread saqlain abbas
Hi, if i add Categories , for example 1)accessories 2)sports 3)books Subcategories: accessories is the parent category child categories are watches jewlry caps how can i show if user selects the parent category accessories then the subcategories show according to parent categories like