Hello! I would like you to help me implement a filter form, I put them in cotexts:
Example:
I have a website about cars, I created my Car model with attributes such as:
- colour
- make
- model
- price
Now I want to find a way to make a filtering using a form, the case is that the form will have three input type drop-down, [make, model, price], when the user selects a make the model input must display only the models available for that make, how to achieve that?
Is it necessary to implement a Make and Model model and associate them with Car by a foreign key?