Django-Filter - HTMX Integration and Filtering Multiple Values for a Form Field

preview_player
Показать описание
This short follow-up to the first video on Django-Filter will cover some additional topics, notably:

1. How to filter a field based on multiple values
2. How to change the widget for a field defined on the FilterSet
3. How to integrate django-filter with HTMX

📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀:
00:00 Intro
00:33 Selecting Multiple Values for a Form Field
03:52 Changing the widget to CheckboxSelectMultiple
05:00 Using django-filter with HTMX

☕️ 𝗕𝘂𝘆 𝗺𝗲 𝗮 𝗰𝗼𝗳𝗳𝗲𝗲:
To support the channel and encourage new videos, please consider buying me a coffee here:

▶️ Full Playlist:

𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮:

📚 𝗙𝘂𝗿𝘁𝗵𝗲𝗿 𝗿𝗲𝗮𝗱𝗶𝗻𝗴 𝗮𝗻𝗱 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻:

#django #python
Рекомендации по теме
Комментарии
Автор

Great short tutorial, thanks Bugbytes

ericmuijs
Автор

Awesome stuff as always! Thank you mate!

marvelouswololo
Автор

Cool stuff sir.This is currently my number one channel.

repotranstech
Автор

Thank you for this! Exactly what I was hoping for.

zackmcnelly
Автор

Thx for great video!! I resolved a problem 👍

minjun
Автор

it's excellent but i couldn't get the hx-target to work properly with the template inheritance

ayubkara
Автор

Hello BugBytes, Thank you for your tutorials. Really helped me out with my project. I was just wondering if you could show an exemple of django-filter with Many to Many field. I tried on my app and was not able to get it to work. Thanks in advance.

faustarp
Автор

is this also possible to accomplish without the button press to submit, but immediately after selecting a checkbox or an option from the dropdown?

jenteotte
Автор

Awesome ! Would be possible to have a ManyToMany field in the model ? (for example if a book is written by multiple Authors )

Автор

But the URL in the browser isn't updating, so it's not shareable. How would you do that using htmx?

Автор

mate, can you tell me how long it takes to learn python & django for backend ? starting from scratch with no prior knowledge. just give me an estimated timeframe .

iwilllearneverything
Автор

sirin hamza fruity edition doesn’t have all the plugins or samples and it can’t record content either

chabbishreels
Автор

Can the url also change with the filters used when using htmx?

quimmassague