If you use the same name for three values you will have a array on the get
or post then you have to no the order
And for the filter use filters from your model to get the right car if that
what you need ;)

On Wed, 7 Aug 2019, 01:00 Ronaldo Mata <ronaldomat...@gmail.com wrote:

> 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?
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAP%3DoziTmabU-O0GmSZUr-BUWkYHzuFCLV1zyO4t-2b4NqCcZMw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAP%3DoziTmabU-O0GmSZUr-BUWkYHzuFCLV1zyO4t-2b4NqCcZMw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT2y9tCcJDR0sjwCkcFWSJyr3cJnPc%3DEPesCbqx95ut%3DzA%40mail.gmail.com.

Reply via email to