0

I am new to Django and I am trying to figure out how to create a Model Multiple Choice Filter. I am currently trying to create a filter that will filter pets by type, for example cat, dog, bird, etc. The problem I'm running into is that there are a bunch of breeds (ex: husky in dogs), so when I do a queryset that orders by animal type I get way more options than I want. Is there a way to make it so the filter will only display the animal type, but when clicked, will actually query for all the breeds within that type?

  • can you add your pets model with the fields involved in the question? – nnov Jul 23 '20 at 20:07
  • please show us some code of what you have tried – FarZad Jul 23 '20 at 20:14
  • This [link](https://stackoverflow.com/questions/48262544/how-to-specify-parent-child-relationship-within-one-model) might help you out. Good look! – Igor Jul 23 '20 at 20:48

0 Answers0