--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1530c511-072f-44ee-83fa-3555bd090a89%40googlegroups.com.
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 with your view which would be show_child_categories where you pass the id of your parent and filter for it in your view function.
hope that helps, antje