Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

193
Visualizações
Filtering Model Fields with button in Django

i'll include my code first

Models:

Models

Base.html: (for the navbar button)

Base.html

views.py: Views.py

and this is the page: Page

So what i want to do is if the user click the button, the page is filtering and just return the book with requested genre.

I've tried to use jquery with function (as you can see in base.html), i've tried some of method in google but it filtering with get element byclassname.

Is it possible if not using jquery,ajax, etc?, if not it's ok but give me an explanation, because i don't really understand.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda